[MIcrostation 10.15.02.11 french and SDK 10.16.00.80] Unable to load c++ dll

Hello,

I start with the SDK.

I have Visual Studio 2017 and .NET 4.6.2 Framework installed

I have compiled examples and build a sample dll in c# and in c++

Everything builds successfully

- I can load c# "Hello world" sample.dll (created from c# template) in MicroStation

- I can load any .ma examples

- I get error message "MDL Loader: Could not load application" when trying to load c++ sample.dll (created from c++  template)

- I get error message "MDL Loader: Could not load application" when trying to load myapp.dll

Do you know why ?

Many thanks

Remy

Parents Reply
  • Hi ,

    I suspect it does have something to do with your install of MicroStation, but in my honest opinion not (yet proven) related to language, but possibly due to timing and conditions (required).

    The MicroStation SDK even though things have been improved (unfortunately) still requires Microsoft 8DOT3NAME compliance. So on the Drive letter and/or at the time you installed MicroStation; I suspect Microsoft 8DOT3NAMES were not (fully) enabled on your system.

    The reason (and evidence from the log) I believe this is the case is because the MicroStation SDK path on your C: drive are definitely using 8DOT3 names; showing use of: e.g. MICROS~1.

    Where your MicroStation Product path on your D: drive does not appear to be using Microsoft 8DOT3 names; showing incomplete paths and file names in the log.

    I would suggest enabling Microsoft 8DOT3NAMES on your C: drive then simply re-installing MicroStation since this will ensure new/required 8DOT3NAMES will be generated and available to the MicroStation SDK.  The alternate is to install MicroStation product in a path without having (any) spaces and this would accomplish the same effect.

    Bob

    Target: D:\Program
    [== Building D:\Program, (C:\Users\ADMINI~1\AppData\Local\Temp\Bentley\MICROS~1\objects\myapp.mi) ==]
    rlib @C:\Users\ADMINI~1\AppData\Local\Temp\Bentley\MICROS~1\objects\make.opt
    MicroStation Resource Librarian 03.21.02
    Macro (myapprsc.mki:45): ERRORLEVEL=0
    End: C:\PROGRA~1\Bentley\MICROS~1\examples\DialogBoxes\myapp\myapprsc.mki
    Resume: C:\PROGRA~1\Bentley\MICROS~1\examples\DialogBoxes\myapp\myapp.mke at line 146
    End: C:\PROGRA~1\Bentley\MICROS~1\examples\DialogBoxes\myapp\myapp.mke
    Thu Oct 21 15:36:45 2021, elapsed time: 0:05



    Answer Verified By: Rémy Weill 

Children
  • Hi Bob

    I have enabled 8dot3names on drive D:

    D:\>fsutil 8dot3name query d:

    The volume state is: 0 (8dot3 name creation is enabled).
    The registry state is: 2 (Per volume setting - the default).

    Based on the above two settings, 8dot3 name creation is enabled on d:

    and unisnstall/reinstall MicroStation and sdk on drive D:

    But it seems the problem is still there (even worse..)

    D:\Program Files\Bentley\MICROS~2\examples\DialogBoxes\myapp\myapp.mke(58) : error : Missing Dependency: Files\Bentley\MICROS~2\examples\DialogBoxes\myapp\myappcmd.r
    BMAKE: call trace
    line: 58, D:\Program Files\Bentley\MICROS~2\examples\DialogBoxes\myapp\myapp.mke
    Fri Oct 22 12:51:58 2021, elapsed time: 0:01

    Remy

  • D:\Program Files\Bentley\MICROS~2\examples\DialogBoxes\myapp\myapp.mke(58) : error : Missing Dependency: Files\Bentley\MICROS~2\examples\DialogBoxes\myapp\myappcmd.r

    The first file (myapp.mke) continues to use a Windows long file name D:\Program Files\....

    The error tells us that the build process can't find file Files\Bentley\ ... \myappcmd.r.  In other words, the file path has been split at the space character in Program Files.

     
    Regards, Jon Summers
    LA Solutions

  • Hello John,

    Yes, I saw.

    The problem is that changing shortname behavior only creates the short names for new files and folders. Not for existing ones.

    I have rename Program files and reinstall and it's working now

    Many thanks John, Bob and Jan for your help

    Remy