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

C / C++ / MFC

 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:49
civicnar1-Nov-04 8:49 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 8:52
civicnar1-Nov-04 8:52 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:57
Joaquín M López Muñoz1-Nov-04 8:57 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:03
civicnar1-Nov-04 9:03 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 9:26
Joaquín M López Muñoz1-Nov-04 9:26 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 9:32
civicnar1-Nov-04 9:32 
QuestionHow to Start MFC App with arguments Pin
nonothing1-Nov-04 5:38
nonothing1-Nov-04 5:38 
AnswerRe: How to Start MFC App with arguments Pin
GKarRacer1-Nov-04 5:58
GKarRacer1-Nov-04 5:58 
If you look at the InitInstance function in your app class you should see something similar to:
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

Command line processing is handled here. What you want to do is create a new class derived CCommandLineInfo and replace the declaration of cmdInfo with your new class instead.

Override the ParseParam function in your CCommandLineInfo class and set whatever variables you need based on the input.
void CYourCmdLineInfo::ParseParam(const TCHAR* pszParam,BOOL bFlag,BOOL bLast)
{
	if( bFlag )
	{
		if( lstrcmpi(pszParam, _T("MyFlag")) == 0 )
		{
			bMyFlag = true;
		}
		else if( lstrcmpi(pszParam, _T("MyOtherFlag") == 0 )
		{
			bMyOtherFlag = true;
		}
	}
	CCommandLineInfo::ParseParam(pszParam, bFlag, bLast);
}

GeneralRe: How to Start MFC App with arguments Pin
David Crow1-Nov-04 6:41
David Crow1-Nov-04 6:41 
AnswerRe: How to Start MFC App with arguments Pin
Michael Dunn1-Nov-04 8:08
sitebuilderMichael Dunn1-Nov-04 8:08 
QuestionHow to hook system API under win9x? Pin
jedyking1-Nov-04 5:32
jedyking1-Nov-04 5:32 
GeneralThe Focus of a modeless dialog2 Pin
si_691-Nov-04 5:26
si_691-Nov-04 5:26 
GeneralRe: The Focus of a modeless dialog2 Pin
Jim Crafton1-Nov-04 6:15
Jim Crafton1-Nov-04 6:15 
GeneralRe: The Focus of a modeless dialog2 Pin
valikac1-Nov-04 7:37
valikac1-Nov-04 7:37 
GeneralThe Focus of a modeless dialog Pin
si_691-Nov-04 5:25
si_691-Nov-04 5:25 
GeneralEdit control beeps on Esc or Tab keys Pin
Jim Crafton1-Nov-04 5:25
Jim Crafton1-Nov-04 5:25 
GeneralRe: Edit control beeps on Esc or Tab keys Pin
peterchen1-Nov-04 7:24
peterchen1-Nov-04 7:24 
GeneralOne more on print orientation and paper size specifications Pin
Member 12423731-Nov-04 4:06
Member 12423731-Nov-04 4:06 
GeneralRe: One more on print orientation and paper size specifications Pin
Phil J Pearson1-Nov-04 6:10
Phil J Pearson1-Nov-04 6:10 
GeneralRe: One more on print orientation and paper size specifications Pin
Member 12423731-Nov-04 10:36
Member 12423731-Nov-04 10:36 
GeneralRe: One more on print orientation and paper size specifications Pin
Phil J Pearson2-Nov-04 1:25
Phil J Pearson2-Nov-04 1:25 
GeneralRe: One more on print orientation and paper size specifications Pin
Qadddd2-Nov-04 7:45
Qadddd2-Nov-04 7:45 
GeneralHook woes Pin
Roger Allen1-Nov-04 1:38
Roger Allen1-Nov-04 1:38 
GeneralRe: Hook woes Pin
vcplusplus1-Nov-04 2:38
vcplusplus1-Nov-04 2:38 
GeneralRe: Hook woes Pin
Roger Allen1-Nov-04 2:57
Roger Allen1-Nov-04 2:57 

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.