hoping someone might be able to help me out. I have been writing addins in C#, but now im trying to start out with using c++/Cli for some wrappers. but I'm getting errors from the start...
here are the steps I took to create a c++/Cli class project.
1.open VS2015 and create new c++/CLI class project,
2. close and open the sln file from MicroStation SDK command prompt
3. add include location to properties.
4. add lib location to properties
5. then all I did was start to add using statements to my header file. I only added #include<Mstn\MdlApi\MdlApi.h>
once I added that I got 2 errors.
cannot open source file "_config-eccp.h"
and #error directive: Data Alignment must be defined in basedefs.h.
im a newbie what it comes to c++...
Hi John,
"2. close and open the sln file from MicroStation SDK command prompt"
Why?, Why not using Visual Studio?
"5. then all I did was start to add using statements to my header file. I only added #include<Mstn\MdlApi\MdlApi.h>"
From screen shot I assume cppWrappers.h has Common Language Support?
If it has then you can not include MdlApi.h there. You are mixing managed and unmanaged code!
"cannot open source file "_config-eccp.h" usually means your project settings are wrong!
regards
Nenad
so how to set the project so that "_config-eccp.h" error is gone and can make the whole MS example compile?
amender carapace said:so how to set the project so that "_config-eccp.h" error is gone and can make the whole MS example compile?
Please respect the rules and ask in new post!
amender carapace said:so how to set the project so that "_config-eccp.h" error is gone
It was answered in discussion you know about.
amender carapace said:and can make the whole MS example compile?
What "MS Example"? In what MicroStation / MicroStation SDK version? Using what Visual Studio version?
All MicroStation SDK examples are delivered as compilable, and when environment + SDK shell are set correctly, no warnings or errors are reported.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point