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

C / C++ / MFC

 
GeneralRe: HIde logical disk Pin
Ryan Binns1-Nov-04 17:59
Ryan Binns1-Nov-04 17:59 
GeneralRe: HIde logical disk Pin
ThatsAlok3-Nov-04 18:31
ThatsAlok3-Nov-04 18:31 
GeneralChanging a dialog from Popup to Child at runtime Pin
Ali Niaz1-Nov-04 6:14
Ali Niaz1-Nov-04 6:14 
GeneralRe: Changing a dialog from Popup to Child at runtime Pin
faroqtam1-Nov-04 6:26
faroqtam1-Nov-04 6:26 
GeneralOpening an MFC Application in Splitter Pane Pin
Ali Niaz1-Nov-04 6:04
Ali Niaz1-Nov-04 6:04 
GeneralRe: Opening an MFC Application in Splitter Pane Pin
David Crow1-Nov-04 6:34
David Crow1-Nov-04 6:34 
GeneralCalculator Using Stacks Pin
civicnar1-Nov-04 5:54
civicnar1-Nov-04 5:54 
GeneralRe: Calculator Using Stacks Pin
David Crow1-Nov-04 6:38
David Crow1-Nov-04 6:38 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 6:53
civicnar1-Nov-04 6:53 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:37
John M. Drescher1-Nov-04 7:37 
GeneralRe: Calculator Using Stacks Pin
John M. Drescher1-Nov-04 7:41
John M. Drescher1-Nov-04 7:41 
GeneralRe: Calculator Using Stacks Pin
civicnar1-Nov-04 7:57
civicnar1-Nov-04 7:57 
GeneralRe: Calculator Using Stacks Pin
David Crow1-Nov-04 8:31
David Crow1-Nov-04 8:31 
GeneralRe: Calculator Using Stacks Pin
Joaquín M López Muñoz1-Nov-04 8:38
Joaquín M López Muñoz1-Nov-04 8:38 
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 

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.