Hello helpful community,
I am trying to create a simple C++ application. I am using the example 'basic' as given in the SDK.
I open up the command prompt and run mstndevvars.bat. I get the following output
"""
C:\Users\ccrowe>"C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\mdl\bin\mstndevvars.bat"
C:\Users\ccrowe>REM To not see this information echo to the screen
C:\Users\ccrowe>REM set ECHO as an environment variable in your system configuration.
C:\Users\ccrowe>REM For more information see the MicroStation SDK README.
C:\Users\ccrowe>REM ** SET MS **
C:\Users\ccrowe>set msdrive=
C:\Users\ccrowe>set mssource=
C:\Users\ccrowe>SET MS=
C:\Users\ccrowe>for %I in ("") do set MS=%~sI
C:\Users\ccrowe>set MS=
C:\Users\ccrowe>IF "." == "." goto USAGE_Error#-----------------------------------------------------------------------# ERROR: Bad parameter# Usage = MSTNDEVVARS.BAT [MicroStation dir] [MicroStation SDK dir]# e.g. C:\windows\system32\cmd.exe /x /k "C:\Program Files\Bentley\MicroStation\mdl\bin\mstndevvars.bat C:\Program Files\Bentley\MicroStation\ C:\Program Files\Bentley\MicroStationSDK\"#-----------------------------------------------------------------------
C:\Users\ccrowe>GOTO endC:\Users\ccrowe>
I am not sure what the error means.
I then cd into the basic file and run bmake.exe
I get the following output
C:\Users\ccrowe\Desktop\basic>"C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\mdl\bin\bmake.exe"Bentley Systems Make Utility. Version 08.11.09.02, Jan 5 2010Mon Apr 13 12:16:45 2015C:\Users\ccrowe\Desktop\basic\basic.mke(20) : error : can't open include file mdl.mkiBMAKE: call trace line: 20, C:\Users\ccrowe\Desktop\basic\basic.mkeMon Apr 13 12:16:45 2015, elapsed time: 0:00
C:\Users\ccrowe\Desktop\basic>
I am unsure why these errors are occurring. Thank you again for your help.
Unknown said:Usage = MSTNDEVVARS.BAT [MicroStation dir] [MicroStation SDK dir]
You must supply the paths to (a) MicroStation and (b) the MDL sub-folder. I don't know why it can't figure those out for itself, considering you start it from the \MDL\bin folder. Once you have it running, make your own version of that batch file and hard-wire the paths for your computer.
Regards, Jon Summers LA Solutions
mark anderson [Bentley]
Visit me at https://communities.bentley.com/communities/other_communities/bentley_innovation/default.aspx
Unknown said:I am now seeing that not having VS 2005 is an issue, but I am unable to get VS 2005
Viz Studio 2005 is required for development of native-code (C++) applications with MicroStation V8i. See this table of Viz Studio versions.
The only way I know of to get older versions of Viz Studio is through an MSDN subscription.
Hi Chad,
in this post I will play a role of a wicked man and will be hard on you ... a bit ;-)
Unknown said:There was no free version of 2005 available, and I was not sure how much it mattered.
In your other post you wrote you are comfortable with C++. Sorry, but you are not. This is one of the basic rules in C and C++ development that you have to link your code with a proper (the same) library version, not "some version" created using "some compiler". Using Microsoft C++ compiler, the simplified rule is you have to use the same Visual Studio that was used to produce libraries you will use. More precise formulation is you have to use the same MSVCRT runtime library.
I recommend to search for terms like calling convetions (example of very detail document) and msvcrt hell and to study what you will found. This issue is not specific for MicroStation development and also not only for Visual Studio compilers, so if you really want to know C/C++, this is the mandatory knowledge.
Unknown said:I am now seeing that not having VS 2005 is an issue, but I am unable to get VS 2005, it is no longer available to download. Where should I go from here?
As Jon wrote, you can receive any version of Visual Studio through MSDN. My addition is Don't be lazy. It took me 30 seconds to find links to download Visual Studio C++ 2005 Express Edition. I have to alert there are some differences between full VS and Express Edition, unfortunately also in terms of registry, but at least you will have the right version of C++ compiler.
If I remember right, it was discussed several times here how to use Express Edition with MicroStation Development shell. In my opinion the full Visual Studio 2005 is better solution, but I don't know if MSDN is acceptable way for you (but if you want to be developer on Windows platform, you should think about it seriously).
I don't know your situation/conditions, but there is also another way: You can start to learn how to develop applications for MicroStation CONNECT Edition, which will be released this year. It offers reworked API (with many new parts) targeted to Visual Studio 2013, so there is no need for old VS version. If you are SELECT subscriber, you should have access to beta version and SDK is also available.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said: I am still in college, so maybe I can get it from Microsoft some other way.
You can try it through Microsoft DreamSpark. Visual Studio 2005 Professional is not, as expected, in the list of downloadable products, but I assume it would be possible to receive also older version(s) based on personal request / discussion with responsible Microsoft representatives.
Regards,