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
  • I've modified my mstndevvars.bat as it written in the guide but it doesn't work... Sad

    The message in the shell is still the same.

    Here is my mstndevvars.bat:

    @echo off

    echo Visual C++ product directory could not be found.
    echo Set nttools to Visual C++ product directory.
    echo Set LIB and INCLUDE appropriately.
    set nttools=
    set LIB=
    set INCLUDE=

    set MS=C:\Programmi\Bentley\Program\MicroStation
    set MSDE=C:\Programmi\Bentley\Program\MicroStation
    set BMAKE_OPT=-I%MS%\mdl\include -I%MS%\mdl\include\stdlib -I%MS%\jmdl\include
    set PATH=;%MS%;%MS%\mdl\bin;%MS%\jmdl\bin;%PATH%
    set CLASSPATH=.;%MS%\jmdl\lib\rt.jar;%MS%\jmdl\lib\jmdlsdk.jar;%MS%\jmdl\lib\swingall.jar;%MS%\jmdl\lib\bentley.jar;%MS%\jmdl;%CLASSPATH%
    set MLINK_STDLIB=%MS%\mdl\library\builtin.dlo %MS%\mdl\library\dgnfileio.dlo %MS%\mdl\library\toolsubs.dlo

    D:
    cd D:\Codice\Gestuti_Ora\AppsComuni\

    What can I do?

Children