Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List control Help!!! Pin
User 66588-May-03 1:30
User 66588-May-03 1:30 
GeneralRe: List control Help!!! Pin
kyoshiro8-May-03 4:21
kyoshiro8-May-03 4:21 
GeneralRe: List control Help!!! Pin
User 66588-May-03 5:41
User 66588-May-03 5:41 
GeneralRe: List control Help!!! Pin
kyoshiro8-May-03 7:04
kyoshiro8-May-03 7:04 
GeneralRe: List control Help!!! Pin
User 66588-May-03 10:04
User 66588-May-03 10:04 
GeneralRe: List control Help!!! Pin
kyoshiro8-May-03 10:51
kyoshiro8-May-03 10:51 
GeneralRe: List control Help!!! Pin
User 66588-May-03 12:34
User 66588-May-03 12:34 
GeneralProblem passing lpCommandLine in CreateProcess... Pin
IrishSonic5-May-03 7:16
IrishSonic5-May-03 7:16 
Hiya, I have set up 2 test dialogs apps for passing info between them. I am calling the second app with CreateProcess() e.g

PROCESS_INFORMATION ProcessInfo;
STARTUPINFO StartupInfo;

ZeroMemory( &StartupInfo,sizeof(StartupInfo) );

StartupInfo.cb = sizeof( StartupInfo );

if( CreateProcess("\\MyApp1.exe","TestString",
NULL,NULL,FALSE,0,NULL,
NULL,&StartupInfo,&ProcessInfo ))
{
WaitForSingleObject( ProcessInfo.hProcess,INFINITE );

CloseHandle( ProcessInfo.hThread );
CloseHandle( ProcessInfo.hProcess );
}
else
{
cout << "Error - Opening Process..";
}

This is ok. The problem is when in the SECOND APP, I try to output the lpCommandLine parameter. I do this in the InitInstance() of the second app e.g

BOOL MyApp1::InitInstance()
{
CString str = GetCommandLine();
AfxMessageBox(str);
}

But it doesn't output the message box at all. It runs the second app but doesn't display the message box..

Any Ideas on this??
Thanks.
GeneralRe: Problem passing lpCommandLine in CreateProcess... Pin
David Crow5-May-03 7:35
David Crow5-May-03 7:35 
GeneralRe: Problem passing lpCommandLine in CreateProcess... Pin
Baris Kurtlutepe5-May-03 12:46
Baris Kurtlutepe5-May-03 12:46 
GeneralContextual menu Pin
bumper5-May-03 6:34
bumper5-May-03 6:34 
GeneralRe: Contextual menu Pin
David Crow5-May-03 7:00
David Crow5-May-03 7:00 
GeneralPrinting Pin
bumper5-May-03 6:29
bumper5-May-03 6:29 
GeneralRe: Printing Pin
Chris Losinger5-May-03 6:40
professionalChris Losinger5-May-03 6:40 
GeneralRe: Printing Pin
bumper5-May-03 6:54
bumper5-May-03 6:54 
GeneralRe: Printing Pin
basementman5-May-03 10:50
basementman5-May-03 10:50 
GeneralRe: Printing Pin
bumper6-May-03 1:22
bumper6-May-03 1:22 
GeneralCDC device resolution Pin
Chris Losinger5-May-03 5:55
professionalChris Losinger5-May-03 5:55 
GeneralProperty Pages Pin
De Nardis Andrea5-May-03 5:22
De Nardis Andrea5-May-03 5:22 
GeneralRe: Property Pages Pin
Joan M5-May-03 6:06
professionalJoan M5-May-03 6:06 
GeneralRe: Property Pages Pin
De Nardis Andrea5-May-03 6:42
De Nardis Andrea5-May-03 6:42 
GeneralRe: Property Pages Pin
G. Steudtel5-May-03 6:11
G. Steudtel5-May-03 6:11 
QuestionHow to retrieve complete network path Pin
Ivano5-May-03 4:55
Ivano5-May-03 4:55 
AnswerRe: How to retrieve complete network path Pin
David Crow5-May-03 5:04
David Crow5-May-03 5:04 
GeneralRe: How to retrieve complete network path Pin
Ivano5-May-03 5:10
Ivano5-May-03 5:10 

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.