Using system() to get rid of Command Line

  • Thread starter Thread starter whatmore
  • Start date Start date
W

whatmore

1. I have a small dialog based MFC application.

2. In this application, I want to invoke an external application
(EXE).



When I tried using system () or exec () functions I am getting black
commandline window, I need to get rid of this command line window.



Any suggestion on this pls.?
 
whatmore said:
When I tried using system () or exec () functions I am getting black
commandline window, I need to get rid of this command line window.

Instead of the runtime's system() use Win32's CreateProcess(), it's far more
capable. Specify CREATE_NO_WINDOW as one of the "creation flags" when you
make the call.

Regards,
Will
 
Back
Top