Re: How to run Eu pgm FROM Eu pgm, with PARAMETERS (for 2nd Eu pgm)
- Posted by Dan_M Jul 11, 2009
- 1205 views
DerekParnell said...
Dan_M said...
What are the error codes, numerically, for shellExecuteEx,or where are they defined?
and, what if the path/file name includes SPACES in the path, how do I specify that so that a DOS program can handle it?
- The error codes are documented here. However there is a bug in the function. Instead of returning the error code, it returns !0 if it succeeds and 0 if it fails. I'll fix this too.
- You should be able to use spaces in the file string without problems ...
res = shellExecuteEx("open", "c:\\program files\\myapps\\special app.exe", ...)
On this machine, I'm running Win32Lib 0.60.5, under Eu 2.5, and when I run my "wrap", I get a return code of 5, and NOTHING seems to happen.
When I put a wait_key() at the end of one of the file compares, in case it was displaying in cmd window too quickly to see, I see NOTHING. That's why I was thinking maybe spaces in path made the file compare not run when executed by shellExecuteEx.
And the "diffxx.ex" file compares are in same folder as the GUI "wrap".
Any suggestions on debug?
Dan