Re: message_box() with eui=OK, after bind = not OK
- Posted by SergioGelli Aug 16, 2010
- 1224 views
That actually sounds like a bug. It should be returning WIN32, since DOS support was dropped for v4. None of the euphoria binaries shipped with beta 3 should be reporting DOS32 from platform(). You may be unintentionally running a different interpreter (like ex.exe from 3.1?).
I did not use EX.EXE
To explain a bit better, I added the following line in the file MSGBOX.E
puts (1, sprintf ("WIN32 =% d \n DOS32 =% d \n platform () =% d", (WIN32, DOS32, platform ()}))
See below for steps to build the wwait.exw to wwait.exe
C: \ 001Eu4> bind-full_debug wwait
deleted 510 unused routines 5884 and unused variables.
May you now run wwait.exe
Press Enter
See the result of running WWAIT.EXE on a Win32 screen
C: \ 001Eu4> wwait
C: \ 001Eu4> WIN32 = 2
DOS32 = 1
platform () = 2
See the result of running WWAIT.EXE on a DOS screen
C: \ 001Eu4> wwait
C: \ 001Eu4> WIN32 = 2
DOS32 = 1
platform () = 1
That's the problem reazon:
MSGBOX.E do not works with platform()=1
Those old programs are probably DOS programs. There is a difference in the way the executable is built. Euphoria is supported by volunteers, and there has been no one interested in supporting a DOS port for some time.
DOS programs cannot access Windows dlls, which is what the message box code does.
Matt
Means, do not use EU40b3 in DOS platform ?