开发者

Hiding the Command Console from a MFC dialog application

开发者 https://www.devze.com 2022-12-25 10:52 出处:网络
I have a MFC dialog based application in which I use ::system() function to physically open a text file. When I do it the co开发者_如何学JAVAmmand console also opens. How can I hide the command consol

I have a MFC dialog based application in which I use ::system() function to physically open a text file. When I do it the co开发者_如何学JAVAmmand console also opens. How can I hide the command console so that it doesn't pop up when I'm opening the text file?

Thank You!!!


Use ShellExecute or CreateProcess instead of ::system. ::system will cause the shell (cmd.exe on windows) to be launched which is why the console window is displayed.

0

精彩评论

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

关注公众号