1. shellExecut() and system() shows a black window.

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.

new topic     » topic index » view message » categorize

2. Re: shellExecut() and system() shows a black window.

Maybe free_console() will work.

new topic     » goto parent     » topic index » view message » categorize

3. Re: shellExecut() and system() shows a black window.

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 ()?

new topic     » goto parent     » topic index » view message » categorize

4. Re: shellExecut() and system() shows a black window.

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?

new topic     » goto parent     » topic index » view message » categorize

5. Re: shellExecut() and system() shows a black window.

Have you included the std/console.e in your program?

new topic     » goto parent     » topic index » view message » categorize

6. Re: shellExecut() and system() shows a black window.

euphoric said...

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"

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu