Hello again,
Can you point me in the right direction for creating a simple C++ app for microstation? I know there are examples in the SDK, I just don't know what they are called. Which place in the SDK should I look at for the basics of creating a C++ app.
I am comfortable with C++, I just do not know where to start off. Is bookstore, gasmain, propviewer, and webstore what I should look at? They are not .ma files, so I was unsure if I could load them into Microstation.
Thank you again for your time, help, and patience.
Unknown said:I know there are examples in the SDK, I just don't know what they are called
Most of the examples in the V8i SDK are implemented in C++. For example, \MDL Examples\basic. Use a search tool to look for .cpp files.
Unknown said: Is bookstore, gasmain, propviewer, and webstore what I should look at?
I've no idea. Where did you find those?
Regards, Jon Summers LA Solutions
Hi Chad,
Unknown said:Which place in the SDK should I look at...
You did not tell what version of MicroStation and MicroStation SDK do you use. In V8i, the default SDK examples folder is MDLProjects V8i (SELECTseries 3) in your Documents.
Unknown said:...for the basics of creating a C++ app.
You can choose nearly any from the delivered examples, because they all are "basic" in terms they demonstrate one specific are of MicroStation API. For sure you can start with the example called basic.
Unknown said:Is bookstore, gasmain, propviewer, and webstore what I should look at?
These examples are Bentley Map examples, not MicroStation (and as such they cannot be treated as basic). Can you confirm you have installed and use MicroStation or Bentley Map?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said:I am not sure which Microstation SDK I use.
It's not easy to provide an advice, to know versions is pretty important when any development is done, because proper versions of MicroStation + SDK + Visual Studio have to be used together. The version of SDK can be checked in Add / remove programs (if you select SDK item, details are displayed) or in readme (readme_microstationsdk.chm). The same for MicroStation.
Unknown said: I do not have any microstation files under my Library Documents.
I didn't write anything about Library Documents, I mentioned Documents folder, which is by default located at C:\Users\<user name>\Documents\, so the full path to SDK examples should be C:\Users\<user name>\Documents\MDLProjects V8i (SELECTseries 3)\.
If you have no examples in the mentioned folder, you should reinstall MicroStation SDK. Should take short time.
Unknown said:I found those under "C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\Map\mdl\examples"
These examples belong to Bentley Map, not to MicroStation SDK.
Unknown said:The version is lists is v08.11.09.460. Is this the correct version?
As I wrote, SDK and MicroStation versions are coupled tightly, so without know MicroStation build it cannot be told if it's correct version or not.
SDK build 08.11.09.460 is the latest SDK version available, so it can be used with the latest V8i builds like 08.11.09.459.
Unknown said:I guess I will reinstall the SDK
Maybe it's not necessary. In the first step you can try to use change the existing installation from Control Panel > Add / Remove programs (not sure about exact sentence in English, I have no English Windows installed).
Regards,
Answer Verified By: Chad Crowe