我有一个进程B,这个进程没有窗口,为什么我用createprocess,无法创建它呢,或者用winexec也无法创建他.进程B
/*--------------------------------------------------------------
HelloMsg.c -- Displays "Hello, Windows 98!" in a message box
(c) Charles Petzold, 1998
--------------------------------------------------------------*/#include <windows.h>int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{ MessageBox (NULL, TEXT("Hello world"), TEXT ("HelloMsg"), 0) ; return 0 ;
}
/*--------------------------------------------------------------
HelloMsg.c -- Displays "Hello, Windows 98!" in a message box
(c) Charles Petzold, 1998
--------------------------------------------------------------*/#include <windows.h>int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{ MessageBox (NULL, TEXT("Hello world"), TEXT ("HelloMsg"), 0) ; return 0 ;
}
WinExec(FilePath,SW_SHOWNORMAL);
check一下吧