How to start new process(like Notepad) in my MFC based project?
Thanks, Honza
Printable View
How to start new process(like Notepad) in my MFC based project?
Thanks, Honza
Hi, try this:
PROCESS_INFORMATION info;
STARTUPINFO startup;
CString strExePath = "notepad.exe";
memset(&startup, 0, sizeof(startup));
startup.cb = sizeof(startup);
if(CreateProcess(NULL, strExePath, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &info))
{
// notepad started
}