[CONNECT C++] Visual Studio 2017 template

Dear all,

I was missing a Visual Studio template for VS201, so I created it one from the MyApp example (I suppose it should also work on later VS versions). I think it might be a good starting point for beginning MDL programmers.

Functionality:

It will create a MyApp application in your project folder, and rename all instances of "MyApp" to your project name. This will give you a basic C++ application with the same sample code as the MyApp example. Differences:

- The application will be built to its own folder, and therefore:

- You don't need to start VS2017 as Administrator;

- The command table include will be built to the source folder instead of the object folder (otherwise it was double).

Instructions:

- Set environment variables MS to your MicroStation directory and MDE to your MicroStation SDK (use a path without any spaces, otherwise use the DOS 8.3 equivalent);

- Copy the ZIP-file to %USERPROFILE%\Documents\Visual Studio 2017\Templates\ProjectTemplates;

- Create a Visual C++ project using the MyApp template;

- Change all command ID's in <project name>.cpp to upper case (but you can see this because it will give build errors).

- Build the application;

- Set the debug command to $(MS)microstation.exe;

- Start debug from VS2017 (MicroStation will start);

- Open the key-in tool in MicroStation and entering 'mdl l "<full path to your .ma file>"'.

That's it, you can customise your application by removing unnecessary code.

4477.MyApp.zip