Click here to Skip to main content
15,928,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error in CreateProcess. Pin
Nishad S1-Sep-07 2:40
Nishad S1-Sep-07 2:40 
GeneralRe: Error in CreateProcess. Pin
GauranG Shah1-Sep-07 3:20
GauranG Shah1-Sep-07 3:20 
GeneralRe: Error in CreateProcess. Pin
Waldermort1-Sep-07 14:37
Waldermort1-Sep-07 14:37 
GeneralRe: Error in CreateProcess. Pin
GauranG Shah2-Sep-07 18:25
GauranG Shah2-Sep-07 18:25 
GeneralRe: Error in CreateProcess. Pin
Roger Broomfield1-Sep-07 3:16
Roger Broomfield1-Sep-07 3:16 
GeneralRe: Error in CreateProcess. Pin
GauranG Shah1-Sep-07 3:23
GauranG Shah1-Sep-07 3:23 
GeneralRe: Error in CreateProcess. Pin
Roger Broomfield1-Sep-07 4:02
Roger Broomfield1-Sep-07 4:02 
GeneralRe: Error in CreateProcess. Pin
GauranG Shah1-Sep-07 4:28
GauranG Shah1-Sep-07 4:28 
Ok. I have tried the same code in other win32 application which doesnt uses any other thing.

I just simply create the Win32 Project throught Winzard(VC 2005) and the make the changes so that when you press OK Button on About Box it Call the ShowImage() Function. But still it gives the me the Runtime Error. The Follwing code works fine in one of my MFC Application.
<br />
<br />
void ShowImage(void)<br />
{ STARTUPINFO si;<br />
    PROCESS_INFORMATION pi;<br />
<br />
    ZeroMemory(&si, sizeof(si) );<br />
    si.cb = sizeof(si);<br />
    ZeroMemory(&pi, sizeof(pi) );<br />
<br />
    // Start the child process. <br />
    CreateProcess( NULL, // No module name (use command line). <br />
        L"MSPAINT", // Command line. <br />
        NULL,             // Process handle not inheritable. <br />
        NULL,             // Thread handle not inheritable. <br />
        FALSE,            // Set handle inheritance to FALSE. <br />
        0,                // No creation flags. <br />
        NULL,             // Use parent's environment block. <br />
        NULL,             // Use parent's starting directory. <br />
        &si,              // Pointer to STARTUPINFO structure.<br />
        &pi );             // Pointer to PROCESS_INFORMATION structure.<br />
		<br />
}<br />
<br />

GeneralRe: Error in CreateProcess. [modified] Pin
Roger Broomfield1-Sep-07 5:08
Roger Broomfield1-Sep-07 5:08 
Questioninclude mfc42.dll in exe? (vc++ 6.0) [modified] Pin
rolfhorror1-Sep-07 1:13
rolfhorror1-Sep-07 1:13 
AnswerRe: include mfc42.dll in exe? (vc++ 6.0) Pin
Nishad S1-Sep-07 1:45
Nishad S1-Sep-07 1:45 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) [modified] Pin
rolfhorror1-Sep-07 1:58
rolfhorror1-Sep-07 1:58 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) Pin
rolfhorror1-Sep-07 2:38
rolfhorror1-Sep-07 2:38 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) Pin
Nishad S1-Sep-07 2:45
Nishad S1-Sep-07 2:45 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) [modified] Pin
rolfhorror1-Sep-07 2:51
rolfhorror1-Sep-07 2:51 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) Pin
Nishad S1-Sep-07 3:08
Nishad S1-Sep-07 3:08 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) [modified] Pin
rolfhorror1-Sep-07 3:09
rolfhorror1-Sep-07 3:09 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) Pin
Nishad S1-Sep-07 3:20
Nishad S1-Sep-07 3:20 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) Pin
rolfhorror1-Sep-07 3:25
rolfhorror1-Sep-07 3:25 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) Pin
Nishad S1-Sep-07 3:27
Nishad S1-Sep-07 3:27 
AnswerRe: include mfc42.dll in exe? (vc++ 6.0) Pin
prasad_som1-Sep-07 3:23
prasad_som1-Sep-07 3:23 
AnswerRe: include mfc42.dll in exe? (vc++ 6.0) Pin
PJ Arends1-Sep-07 6:56
professionalPJ Arends1-Sep-07 6:56 
GeneralRe: include mfc42.dll in exe? (vc++ 6.0) Pin
rolfhorror1-Sep-07 8:05
rolfhorror1-Sep-07 8:05 
AnswerRe: include mfc42.dll in exe? (vc++ 6.0) Pin
Gary R. Wheeler2-Sep-07 4:30
Gary R. Wheeler2-Sep-07 4:30 
QuestionDownload Manager Pin
Daniel Kanev7-Mar-17 21:54
Daniel Kanev7-Mar-17 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.