Honza
September 25th, 1999, 01:40 PM
How to start new process(like Notepad) in my MFC based project?
Thanks, Honza
Thanks, Honza
|
Click to See Complete Forum and Search --> : Starting new process Honza September 25th, 1999, 01:40 PM How to start new process(like Notepad) in my MFC based project? Thanks, Honza Thomas Ascher September 27th, 1999, 02:16 AM 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 } codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |