What version of C++

What version of C++ (M$ Visual C++ 6.0) is required to create a native Win32 application to interface with Ustn V8i via. mdl?
Parents
  • 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

  • Implement an MDL Application in a DLL using VC++

    Jan:
    I happen to have MicroSoft VS2005 Pro, so I am interested in using it for MDL.

    When you write an MicroStation Development Library (MDL) application using Visual C++, you aim to create a DLL. You will:

    1. Moving all executable code into .cpp files
    2. Call into the MDL just as you would call a Win32 function
    3. #include the MDL function prototype (.fdf) and other header .h files so the C++ compiler understands the calls
    4. Link with the MDL library files

    Some resource data can continue to live in (.r) files that you compile using the Bentley tools. For example, you can implement dialog boxes using MDL resources or use Microsoft Foundation Library (MFC) or Windows Template Library (WTL) resources. It's also moot whether you should store messages in MDL (.r) files or VC++ string tables.

    There's some information about:

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  • hello Jon, Jan and Michael,

    I am going to try all of your suggestions in a couple of days. I am very curious. Thanks a lot.

    Jan Willem

Reply Children
  • Hi Jan,

    I forgot to mention how to set up an external tool for the bmake command.  Go to Tools->External Tools... to open the External Tools dialog.  Click the Add button and enter the following and uncheck all options except for Use Output Window:

    Title: BmakeCommand: C:\Program Files\Bentley\MicroStation V8i\MicroStation\mdl\bin\bmake.exeArguments: -lw $(TargetName)Initial Directory: $(ProjectDir)

    Do this for both the Bmake and Bmake All (arguments = -lwa $TargetName) commands and add buttons for these commands to a new or existing toolbar via the Customise menu.

    I agree that until you know you can compile an application, use the developers shell.  After that, forget it!  If you compile your applications using the external tool and have the Use Output Window checked, all error messages are directed to the output window and can be double-clicked to drive you directly to the error (rather than wading through the output in the developers shell and entering line numbers with the Ctrl+G command).

    Micheal