I happen to have MicroSoft VS2005 Pro, so I am interested in using it for mdl. But I have not the slightest idea how to do that. There are some projects for NativeCode in the examples; I tried to compile "cellexp", but I didn't succeed at all (I must also confess that I cannot get on very well with the Bentley-style makefiles). Would there by any chance be an example project to show how to use VS2005?
regards, Jan Willem
Hi Jan,
Make a copy of the mstndevvars.bat file and give it a name that defines the version of Microstation that it will be used with, as you can do this for all versions, not just V8i. Edit the file and add the following line to the end of it.
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe"
Next, create a shortcut to your new batch file (I've got mine on my quickstart bar), right-click to go to the shortcut properties and add the following line to the 'Target' line.
"C:\Documents and Settings\jwillem\My Documents\Visual Studio 2005\VS2005_V8i.bat" "C:\Program Files\Bentley\MicroStation V8i\MicroStation\" "C:\Program Files\Bentley\MicroStation V8i\MicroStation\"
I also change the icon to help identify the version of Microstation this shortcut is used with, but... That's it. This shortcut will open Visual Studio and set up all the relevant paths etc for MDL development.
P.S. you may also want to add the path for the MDL header files to your projects (Project->Name Properties->Configuration Properties->C++->General->Additional Include Directories), to give you the browse and intellisense information.
"C:\Program Files\Bentley\MicroStation\mdl\include"
Micheal