1. shellExecut() and system() shows a black window.
- Posted by sergelli Aug 21, 2012
- 1192 views
Hello
When I run "system("xxx.exe",0) or ShellExecute("open","xxx.exe",style) the xxx.exe program works, but also is showing a black window titled "C:\WINDOWS\system32\cmd.exe".
This is happening with windows 7 and Eu4 or Eu3
For this black window does not appear, what should I do?
Thanks in advance.
2. Re: shellExecut() and system() shows a black window.
- Posted by euphoric (admin) Aug 21, 2012
- 1166 views
Maybe free_console() will work.
3. Re: shellExecut() and system() shows a black window.
- Posted by sergelli Aug 21, 2012
- 1150 views
I read about free_console(), but it seems that need some prior knowledge.
The manual shows only three lines
include std/console.e -- this is obvious namespace console -- this line make a Errors: resolving the following references: namespace console public procedure free_console()-- and then ????
Does anyone have an example of how to use free_console ()?
4. Re: shellExecut() and system() shows a black window.
- Posted by sergelli Aug 21, 2012
- 1143 views
Additionally, when using a line with free_console () I get an error message
<0074>:: Errors resolving the following references: exe1.exw (17): free_console free_console()
But when I run the program dep.exw (Euphoria demo folder) get no error message.
What is the logic in that?
5. Re: shellExecut() and system() shows a black window.
- Posted by euphoric (admin) Aug 22, 2012
- 1117 views
Have you included the std/console.e in your program?
6. Re: shellExecut() and system() shows a black window.
- Posted by sergelli Aug 22, 2012
- 1073 views
Have you included the std/console.e in your program?
Yes I do,
This error happens when:
In "xxx.EXW" program has a line with "include yyy.ew"
and both codes, "xxx.EXW" and "yyy.EW", has a line with "include win32Lib.ew"