Simple VC++ sample code

I'm having trouble locating a good, simple sample project that uses Visual C++ and Microstation. I haven't been able to find any in the SDK samples. I see C# code, but no C++. Is there anywhere else I should look?

  • C++ Examples & the MDL

    It depends which version of the SDK you're looking at. I believe that, from V8i SS1, all the MicroStation Development Library (MDL) examples delivered with the SDK are implemented in .cpp files to be compiled using C++.

    Having said that, those examples don't use a lot of C++ or object-oriented programming. They are mostly re-writes of earlier MDL examples that demonstrate the use of MDL in a C++ environment. That's not a bad thing: even real C++ applications need frequently to call MDL functions.

    C++ Examples & the MicroStationAPI

    The MicroStationAPI is a C++ interface library. For MicroStation developers it's an evolution in the right (object-oriented) direction. However, the help is terse and examples are few & far between. ToolExample is delivered to the \Workspace\MDL Projects folder with the SDK installation.

    You'll find a handful of C++ examples on our website.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  • Since you mentioned C#, perhaps you mean C++/CLI? If so, you are right. There are no examlpes for this language addins. If you like C++, it's better to go in another way... As Jon suggested, there are many native C++ examples which uses MDL.