开发者

wxExecute without a terminal window pop up

开发者 https://www.devze.com 2022-12-13 06:57 出处:网络
I am trying to use wxExecute this way: wxExecute(\"taskkill /F /IM ASSe开发者_如何转开发rver.exe\");

I am trying to use wxExecute this way: wxExecute("taskkill /F /IM ASSe开发者_如何转开发rver.exe");

and I don't intend to see the terminal window that pops up(windows). Is there a way to do that? except this http://wiki.wxwidgets.org/WxExecute

thanks,


The way given on the wiki page you linked to is the standard way of doing it, but if you really can't stand it the following should work:

wxProcess process;
wxExecute("taskkill /F /IM ASServer.exe", wxEXEC_ASYNC, &process);


At least in 2.9 (I don't think it existed in 2.8), just pass wxEXEC_HIDE_CONSOLE flag to wxExecute().

0

精彩评论

暂无评论...
验证码 换一张
取 消