Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWM_CTLCOLORBTN Pin
Timothy Grabrian20-Nov-04 17:57
professionalTimothy Grabrian20-Nov-04 17:57 
GeneralSorting a linked list of type class Pin
Maxforce20-Nov-04 17:25
Maxforce20-Nov-04 17:25 
GeneralRe: Sorting a linked list of type class Pin
Jack Puppy20-Nov-04 19:08
Jack Puppy20-Nov-04 19:08 
GeneralRe: Sorting a linked list of type class Pin
Maxforce20-Nov-04 19:47
Maxforce20-Nov-04 19:47 
GeneralCustom CImageList VS manifest files Pin
alex.barylski20-Nov-04 14:16
alex.barylski20-Nov-04 14:16 
GeneralRe: Button and Testbox help Pin
bmzhao20-Nov-04 14:32
bmzhao20-Nov-04 14:32 
GeneralRe: Button and Testbox help Pin
Timothy Grabrian20-Nov-04 17:09
professionalTimothy Grabrian20-Nov-04 17:09 
GeneralCreateProcess stack overflow Pin
Michael Sobers20-Nov-04 11:59
Michael Sobers20-Nov-04 11:59 
Do I need to do something special to run a 16-bit program using CreateProcess. My function works with "cmd.exe" but when I call the 16-bit program I want to use, I get a stack overflow.

Thanks a ton!
Mike

Here's my code:

BOOL CGeneral::CreateGENLAMProcess()
{
PROCESS_INFORMATION myPI;
STARTUPINFO mySI;
BOOL bFuncRetn = FALSE;

// Set up members of the PROCESS_INFORMATION structure.

ZeroMemory( &myPI, sizeof(PROCESS_INFORMATION) );

// Set up members of the STARTUPINFO structure.

ZeroMemory( &mySI, sizeof(STARTUPINFO) );
mySI.cb = sizeof(STARTUPINFO);

// Create the child process.

bFuncRetn = CreateProcess(NULL,
"genlam.exe", // my program name
NULL, // process security attributes
NULL, // primary thread security attributes
TRUE, // handles are inherited
0, // creation flags
NULL, // use parent's environment
NULL, // use parent's current directory
&mySI, // STARTUPINFO pointer
&myPI); // receives PROCESS_INFORMATION

if (bFuncRetn == 0) {
AfxMessageBox("CreateProcess failed");
return 0;
} else {
CloseHandle(myPI.hProcess);
CloseHandle(myPI.hThread);
return bFuncRetn;
}
}
GeneralRe: CreateProcess stack overflow Pin
BaldwinMartin20-Nov-04 17:22
BaldwinMartin20-Nov-04 17:22 
GeneralRe: CreateProcess stack overflow Pin
Michael Sobers22-Nov-04 10:23
Michael Sobers22-Nov-04 10:23 
GeneralRe: CreateProcess stack overflow Pin
BaldwinMartin22-Nov-04 12:08
BaldwinMartin22-Nov-04 12:08 
QuestionHow do you properly usethe Doc/View Pin
Larry Mills Sr20-Nov-04 11:45
Larry Mills Sr20-Nov-04 11:45 
AnswerRe: How do you properly usethe Doc/View Pin
qcha0s20-Nov-04 12:06
qcha0s20-Nov-04 12:06 
GeneralIncrementing object names in MFC Pin
Sgt.Xyclone20-Nov-04 9:33
Sgt.Xyclone20-Nov-04 9:33 
GeneralRe: Incrementing object names in MFC Pin
PJ Arends20-Nov-04 9:54
professionalPJ Arends20-Nov-04 9:54 
QuestionSNMP Anyone? Pin
qcha0s20-Nov-04 7:12
qcha0s20-Nov-04 7:12 
AnswerRe: SNMP Anyone? Pin
BaldwinMartin20-Nov-04 17:09
BaldwinMartin20-Nov-04 17:09 
AnswerRe: SNMP Anyone? Pin
Henry miller22-Nov-04 2:52
Henry miller22-Nov-04 2:52 
Generalwould like to launch request "SHOW TABLE STATUS LIKE 'Clients'" in VC++ Pin
Member 124237320-Nov-04 4:43
Member 124237320-Nov-04 4:43 
QuestionHow do I know when CDialog is deleted by a destructor? Pin
tip231020-Nov-04 4:25
tip231020-Nov-04 4:25 
AnswerRe: How do I know when CDialog is deleted by a destructor? Pin
Maximilien20-Nov-04 5:29
Maximilien20-Nov-04 5:29 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
tip231020-Nov-04 6:00
tip231020-Nov-04 6:00 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
Maximilien20-Nov-04 6:08
Maximilien20-Nov-04 6:08 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
tip231020-Nov-04 6:20
tip231020-Nov-04 6:20 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
Maximilien20-Nov-04 9:14
Maximilien20-Nov-04 9:14 

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.