PORTING MDL - NATIVE CODE

Good Morning, I have a problem porting my apps from mdl to native code.

I've modified my code as it written in the link below reported

http://communities.bentley.com/products/microstation/microstation_v8i/microstation_v8i_programming/w/microstation_v8i_programming_wiki/mdl-_2d00_-native-code-application-development.aspx

But when i compile with microstation shell the next error appear:

[== Building C:\Programmi\Bentley\Program\MicroStation\mdl\objects\UserCase.obj, (D:\Codice\ESEMPI~3\UserCase2\mdl\UserCase.cpp) ==]
cl  -GX  -Dtarget_is_dlm  -IC:\Programmi\Bentley\Program\MicroStation\mdl\include -I -IC:\Programmi\Bentley\Program\MicroStation\mdl\include\geom -IC:\Programmi
\Bentley\Program\MicroStation\mdl\objects -G5dF -D_X86_=1 -Di386=1  -c -W3 -DWIN32 -DwinNT -MD -D_VISCXX -DWIN32_LEAN_AND_MEAN -Od  -nologo -WX -Zi -Od -GZ -Oy-
  -FoC:\Programmi\Bentley\Program\MicroStation\mdl\objects\UserCase.obj D:\Codice\ESEMPI~3\UserCase2\mdl\UserCase.cpp
UserCase.cpp
C:\Programmi\Bentley\Program\MicroStation\mdl\include\toolsubs.h(45) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory

I tryed to compile an example but I have the same result.

What can i do?

Alder

Parents Reply
  • Jon, I corrected the variable MSMDE but another error appear:

    BMAKE: file [C:\Programmi\Bentley\Program\MicroStation\mdl\objects\CMD_Batch.rsc] may be incomplete

    BMAKE: call trace

       line:   23, D:\Codice\Gestuti_Ora\AppsComuni\CMD_Batch\DLLCMD_Batch.mke

    It doesn't work also with the mke not modified (V8CMD_Batch.mke)!

    If I cancel the variable MSMDE it work...

Children
  • Native Code MDL Examples

    If you have V8i, take a look at the MDL examples delivered with the V8i SDK. They have all been rewritten to compile to native code using the Bentley shell and the Microsoft C/C++ compiler.

    If you don't have V8i, then take a look at these examples. They won't compile with V8.5 because you don't have the MicroStationAPI. However, they do provide examples of working bmake files that create a native-code DLL.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions