Copyright © 2003-2006 MultiMedia Soft 
Return to index  
 
Use under Visual C++.NET 2003 
 
When used inside a Visual C++.NET 2003 project (Managed C++), our component needs a turnaround in order to let the compiler work as expected: the problem is caused by a bug inside the Managed C++ compiler and we hope that Microsoft will fix it soon. 
 
Steps needed to reproduce the problem: 
 
  • Tell the environment to create a new Visual C++ Project and choose Windows Forms Application (.NET) between the available project wizards 
  • Put one of the controls available inside our product on the form (in this example we will use an instance of Ctl3dPushButton) 
  • Trying to compile the project, you will get the following compiler errors: 
  •  
    c:\temp\TestCppDotNet\Form1.h(54) : error C3635: '::CONTROL_SETTINGS': undefined native type used in 'Ctl3d::Ctl3dPushButton'; imported native types must be defined in the importing source code 
           did you forget to include a header file? 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3377: 'Ctl3d::Ctl3dPushButton::ApplyEditorChanges' : cannot import method - a parameter type or the return type is inaccessible 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3635: '::TEXT_SETTINGS': undefined native type used in 'Ctl3d::Ctl3dPushButton'; imported native types must be defined in the importing source code 
           did you forget to include a header file? 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3377: 'Ctl3d::Ctl3dPushButton::SetTextSettings' : cannot import method - a parameter type or the return type is inaccessible 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3635: '::FONT_SETTINGS': undefined native type used in 'Ctl3d::Ctl3dPushButton'; imported native types must be defined in the importing source code 
           did you forget to include a header file? 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3377: 'Ctl3d::Ctl3dPushButton::SetFontSettings' : cannot import method - a parameter type or the return type is inaccessible 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3635: '::COLOR_SETTINGS': undefined native type used in 'Ctl3d::Ctl3dPushButton'; imported native types must be defined in the importing source code 
           did you forget to include a header file? 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3377: 'Ctl3d::Ctl3dPushButton::SetColorSettings' : cannot import method - a parameter type or the return type is inaccessible 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3635: '::TEXTURE_SETTINGS': undefined native type used in 'Ctl3d::Ctl3dPushButton'; imported native types must be defined in the importing source code 
           did you forget to include a header file? 
    c:\temp\TestCppDotNet\Form1.h(54) : error C3377: 'Ctl3d::Ctl3dPushButton::SetTextureSettings' : cannot import method - a parameter type or the return type is inaccessible 
     
  • In order to fix these errors simply include, inside your project stdafx.h file, the header file properties.h that you can find inside the "Include" directory created under the directory in which you originally installed our product (by default it should be C:\Program Files\3D Control Magic for .NET\include): for this purpose, you can copy the header file properties.h directly into your project directory. 
  • Now compile again the project and all will work as expected 
  •  
     
     
     
     
     
     
     
     
     
     
    Copyright © 2003-2006 MultiMedia Soft 
    Return to index