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.

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);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.