[CONNECT C++] Setting up C++ Visual Studio Project problems

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++...

Parents Reply
  • Hi ,

    For a handful of reasons we too would like to soon add a (simple, good and practical) C++/CLI example in the SDK.

    I will discuss this with development to identify a small practical and beneficial example and file an Enhancement to add it to the SDK, then update this thread.  Once we have an example available (having both .mke and .sln) I will see about updating our (simple and already dated VS2015) MicroStation Visual Studio Extensions project templates.

    Until then and specific to your current concern, "_config-eccp.h" (IntelliSense database build Error) has been mentioned a few times and from my experience can be resolved/ignored if you use the "Build" option (vs. Build + IntelliSense).  This article clearly shows the option I am referring to, and goes further (though I have not had a need or tested) providing multiple steps on how to manually clean up a (corrupt?) intelliSense solution database; (if needed) see: Fixing Visual Studio Intellisense Errors.

    HTH,
    Bob



    Answer Verified By: John Drsek 

Children