|
-
September 25th, 1999, 01:40 PM
#1
Starting new process
How to start new process(like Notepad) in my MFC based project?
Thanks, Honza
-
September 27th, 1999, 02:16 AM
#2
Re: Starting new process
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
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|