Ecere SDK/eC Forums • View topic - ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现




Ecere SDK/eC Forums

Ecere Developers Community

ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现

来自中国的朋友,欢迎您在本版面使用中文讨论问题。请注意,如果您想得到不懂中文的人的帮助,请同时提供英文译文。
Help and discussions in Chinese.

ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现

Postby janksenhu » Mon Feb 25, 2013 8:43 am

ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现,这个体验太不好了!
有其他的执行方式吗?没有Dos窗口闪现,同时DOS命令阻塞执行?
Attachments
12.jpg
janksenhu
 
Posts: 6
Joined: Sat Feb 02, 2013 2:45 am

Re: ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现

Postby jerome » Mon Feb 25, 2013 2:05 pm

Hi janksen,

hi janksen,

If you use DualPipe, do you still get a command prompt window showing up?
Code: Select all
File output = DualPipeOpen({ output = true }, command);
if(output)
{
   int exitCode;
   while(!output.eof)
   {
      output.Read( ... )
   }
   exitCode = output.GetExitCode();   
}


Also, make sure 'Console Application' setting is off.
If you still get a command prompt box, try { output = true, input = true, error = true }

Regards,

Jerome
jerome
Site Admin
 
Posts: 623
Joined: Sat Jan 16, 2010 11:16 pm

Re: ecere中采用system,Execute,ShellOpen执行DOS命令有黑色dos窗口闪现

Postby janksenhu » Tue Mar 12, 2013 1:51 am

编译之后,运行卡死了!代码如下,不知道为什么!
DualPipe output = DualPipeOpen({ output = true }, "adb");
if(output)
{
int exitCode;

//TempFile fileInput { };
// SetFileInput(fileInput);

while(!output.Eof())
{
//char junk[4096];
// int count = output.Read(junk, 1, 4096);
//fileInput.Write(junk, 1, count);
}
exitCode = output.GetExitCode();
delete output;
}
janksenhu
 
Posts: 6
Joined: Sat Feb 02, 2013 2:45 am


Return to 欢迎使用中文讨论

Who is online

Users browsing this forum: No registered users and 8 guests

cron