C++ Example

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.

Parents
  • 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

  • I am not sure which Microstation SDK I use. I do not have any microstation files under my Library Documents.

    What I do have is under Program Files (x86) a folder called Bentley with the following folders:

    Bentley Class Editor V8i 08.26
    Microstation
    Documentation
    Inroads Group V8.11
    ProjectWise
    Microstation V8i (SELECT series)
    GEOPAK
    DgnODBCDriver
    Workspace
    Program
    Home

    I use Microstation V8i (SELECT series 3).

    I downloaded the microstation SDK from this site:
    www.bentley.com/.../MicroStation+SDK.htm

    I also have access to MicroStationAPI.chm.

    I am not sure if this means I am looking at the right documents? I searched and was unable to find anything called basic. I only found a file called basics under 'C:\Program Files (x86)\Bentley\GEOPAK\V8.11\Samples\road\superComputation\projects\basics'
  • Hi Chad,

    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.

    With regards,

      Jan

  • I was able to find readme_microstationsdk.chm. The version is lists is v08.11.09.460. Is this the correct version?

    I am unable to find any reference to MDLProjects V8i (SELECTseries 3) or anything resembling that.

    I guess I will reinstall the SDK from
    www.bentley.com/.../MicroStation+SDK.htm
  • Hi Chad,

    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,

      Jan

    Answer Verified By: Chad Crowe 

Reply Children