Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
Hi John,Why not to launch the console application from the command prompt?
Use CMD /K to launch it.
Hi John,Maybe, you can try to hook the ExitProcess function to stop the console windows from closing.
Quote from: Stefan Pendl on December 09, 2008, 12:24:37 PMUse CMD /K to launch it.Thanks, that works from the command line but not when using ShellExecute.John
Quote from: Stefan Pendl on December 09, 2008, 12:24:37 PMUse CMD /K to launch it.Thanks, that works with WinExec().John
CreateProcess(NULL, "program.exe | pause", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);WaitForSingleObject(pi.hProcess, INFINITE);
another way could be using CreateProcess and use pause command in lpCommandLine like this Code: [Select]CreateProcess(NULL, "program.exe | pause", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);WaitForSingleObject(pi.hProcess, INFINITE);