[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
  • here are the steps I took to create a c++/Cli  class project

    When you write a *.mke make file and use bmake to build your app. you can benefit from the SDK examples.

    Some SDK examples have a Viz Studio solution, but I don't think that there is any C++/CLI example.

    Try adding pre-processor definition WinNT to your Viz Studio project.  That macro would be defined in your make file by one of the numerous *.mki include files.  You have to replicate that in Viz Studio to build your project correctly.

     
    Regards, Jon Summers
    LA Solutions

Reply
  • here are the steps I took to create a c++/Cli  class project

    When you write a *.mke make file and use bmake to build your app. you can benefit from the SDK examples.

    Some SDK examples have a Viz Studio solution, but I don't think that there is any C++/CLI example.

    Try adding pre-processor definition WinNT to your Viz Studio project.  That macro would be defined in your make file by one of the numerous *.mki include files.  You have to replicate that in Viz Studio to build your project correctly.

     
    Regards, Jon Summers
    LA Solutions

Children