954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Running an external program w/o console showing up

I am writing a program that calls system( "c:\pathtofile.exe" ) to launch another program. Does anybody have a suggestionon how to make it so the console window doesn't show up.

ssvetkoff
Newbie Poster
4 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

Its always nice to find the answer to your own question. I found the answer to my question at :

http://www.swiftview.com/tech/createprocess.htm

The function I wanted was. Just thought id post so This thread could help somebody else.

CreateProcess(NULL, " C;\pathtoexe.exe ", NULL, NULL, FALSE,
                             // Suppress the DOS box.
                             CREATE_NO_WINDOW | NORMAL_PRIORITY_CLASS,
                             NULL, NULL, &si, &pi);
ssvetkoff
Newbie Poster
4 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You