1. Compile problem
- Posted by DonCole Jul 05, 2015
- 1291 views
I'm trying to run Open Watcom from Euphoria with Windows 7 Professional.
- With Windows 7 Premium *
(This code works fine and lasts a long time.)
--------------------------------------compile--------------------------- procedure PushButton2_onClick (integer self, integer event, sequence params)--params is {} sequence full,junk,cmd,cmd2 move_win() full=getText(EditText4) junk=parse_path(full) cmd="ecw -wat "&junk[2] & junk[1] &"\n"--junk[2]=path junk[1]=file --to be compiled setText(EditText11,cmd) cmd2="move "&bin_path&cut_ext(junk[1])&".exe "&junk[2]&cut_ext(junk[1])&".exe" With Windows 7 Premium * setCurrentDirectory(bin_path)---"E:\\Euphoria\\bin\\") system(cmd,0) system("emake",0) puts(1,cmd2 &"\n") system(cmd2,0) puts(1, "Done" &"\n") end procedure setHandler( PushButton2, w32HClick, routine_id("PushButton2_onClick"))
Watcom does it's thing and replies.
35 .c files were created. To build your .exe file. type: emake
I do that, then it says,
compiling with WATCOM
main-0.c
main-1.c
main-2.c
main-3.c
main-4.c
main-5.c
main-6.c
etc...
linking
you now can execute: animal.exe (this could be any file you browse into EditText4).
- With Windows 7 Professional *
To start with Window 7 Professional doesn't work with system() (It does nothing).
system_exec() does work though.
So I use,
setCurrentDirectory(e:\euphoria\bin) cmd="ecw -wat E:\euphoria\demo\animal.exw" a=system_exec(cmd,0)
35 .c files were created. To build your .exe file. type: emake
- Point A *
At point A, cmd("emake") and cmd2("move...") do nothing.
If I end it at point A the command window has no focus; I can't type in 'emake'.
If I close the main window the command window also closes.
How can I get focus back to the command window?
If type everything in manually at the command prompt (a lot of work) then all works fine.
Therefore it's not an Open Watcom problem it's an Euphoria problem.
Thanks for any help or ideas.
Don Cole