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

C / C++ / MFC

 
GeneralRe: Escape out double quote Pin
jkirkerx23-Nov-11 11:07
professionaljkirkerx23-Nov-11 11:07 
QuestionReading Save File Problem Pin
idbee2k323-Nov-11 9:13
idbee2k323-Nov-11 9:13 
SuggestionRe: Reading Save File Problem Pin
Albert Holguin23-Nov-11 9:31
professionalAlbert Holguin23-Nov-11 9:31 
AnswerRe: Reading Save File Problem Pin
David Crow26-Nov-11 6:50
David Crow26-Nov-11 6:50 
QuestionUsing Main to grab command line arguments if it doesn't already exist? Pin
Lucidation23-Nov-11 6:15
Lucidation23-Nov-11 6:15 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Albert Holguin23-Nov-11 7:21
professionalAlbert Holguin23-Nov-11 7:21 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chris Meech23-Nov-11 7:22
Chris Meech23-Nov-11 7:22 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chuck O'Toole23-Nov-11 7:43
Chuck O'Toole23-Nov-11 7:43 
As others have said, you either have main() or you have your WinApp (theApp) but not both. And definitely not two instantiations of theApp.

The command line arguments can be accessed during your InitInstance() function by looking at the m_lpCmdLine data member of your class.

There are a number of classes / functions that can help you parse it in the argc/argv style you're accustomed to, links are in earlier answers to this question.
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Software_Developer23-Nov-11 7:52
Software_Developer23-Nov-11 7:52 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chris Losinger23-Nov-11 8:41
professionalChris Losinger23-Nov-11 8:41 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chuck O'Toole23-Nov-11 9:36
Chuck O'Toole23-Nov-11 9:36 
QuestionBit Fielf In UML Pin
Member 842679823-Nov-11 0:29
Member 842679823-Nov-11 0:29 
AnswerRe: Bit Fielf In UML Pin
Software_Developer23-Nov-11 0:43
Software_Developer23-Nov-11 0:43 
GeneralRe: Bit Field In UML Pin
Member 842679823-Nov-11 1:13
Member 842679823-Nov-11 1:13 
GeneralRe: Bit Field In UML Pin
Software_Developer23-Nov-11 3:24
Software_Developer23-Nov-11 3:24 
GeneralRe: Bit Field In UML Pin
Member 842679824-Nov-11 7:05
Member 842679824-Nov-11 7:05 
GeneralRe: Bit Field In UML Pin
Member 842679825-Nov-11 21:23
Member 842679825-Nov-11 21:23 
QuestionDoesn't open heading file VC ++ Pin
PeLeg8922-Nov-11 23:55
PeLeg8922-Nov-11 23:55 
AnswerRe: Doesn't open heading file VC ++ Pin
Richard MacCutchan23-Nov-11 0:04
mveRichard MacCutchan23-Nov-11 0:04 
GeneralRe: Doesn't open heading file VC ++ Pin
PeLeg8923-Nov-11 0:14
PeLeg8923-Nov-11 0:14 
GeneralRe: Doesn't open heading file VC ++ Pin
Richard MacCutchan23-Nov-11 0:30
mveRichard MacCutchan23-Nov-11 0:30 
GeneralRe: Doesn't open heading file VC ++ Pin
Erudite_Eric23-Nov-11 1:24
Erudite_Eric23-Nov-11 1:24 
AnswerRe: Doesn't open heading file VC ++ Pin
Albert Holguin23-Nov-11 2:47
professionalAlbert Holguin23-Nov-11 2:47 
GeneralRe: Doesn't open heading file VC ++ Pin
PeLeg8923-Nov-11 2:56
PeLeg8923-Nov-11 2:56 
GeneralRe: Doesn't open heading file VC ++ Pin
Albert Holguin23-Nov-11 3:32
professionalAlbert Holguin23-Nov-11 3: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.