Click here to Skip to main content
16,004,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: who can give me a example in C++ using Factory Pattern Pin
york5289-Sep-08 5:58
york5289-Sep-08 5:58 
QuestionParseCommandLine question Pin
sashoalm8-Sep-08 4:17
sashoalm8-Sep-08 4:17 
QuestionRe: ParseCommandLine question Pin
David Crow8-Sep-08 5:06
David Crow8-Sep-08 5:06 
AnswerRe: ParseCommandLine question Pin
sashoalm8-Sep-08 5:19
sashoalm8-Sep-08 5:19 
QuestionRe: ParseCommandLine question Pin
David Crow8-Sep-08 5:46
David Crow8-Sep-08 5:46 
AnswerRe: ParseCommandLine question Pin
sashoalm8-Sep-08 6:10
sashoalm8-Sep-08 6:10 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery8-Sep-08 6:51
Mark Salsbery8-Sep-08 6:51 
AnswerRe: ParseCommandLine question Pin
sashoalm8-Sep-08 6:32
sashoalm8-Sep-08 6:32 
I added this code to my InitInstance,
int argc = __argc;
char* arg1 = __argv[0];
char* arg2 = __argv[1];
char* arg3 = __argv[2];
CommandLineParser parser(m_aFileList);
ParseCommandLine(parser);

and the count and the arguments were correctly shown when debugging. But when I step into ParseCommandLine, the arguments are wrong there (they caused an access violation so they must be NULL)! Confused | :confused:

Is this a linker problem? I use MFC as a DLL.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

QuestionRe: ParseCommandLine question Pin
David Crow8-Sep-08 6:43
David Crow8-Sep-08 6:43 
AnswerRe: ParseCommandLine question Pin
sashoalm8-Sep-08 6:58
sashoalm8-Sep-08 6:58 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery8-Sep-08 7:13
Mark Salsbery8-Sep-08 7:13 
JokeRe: ParseCommandLine question Pin
sashoalm8-Sep-08 7:18
sashoalm8-Sep-08 7:18 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery8-Sep-08 7:23
Mark Salsbery8-Sep-08 7:23 
GeneralRe: ParseCommandLine question Pin
sashoalm8-Sep-08 7:53
sashoalm8-Sep-08 7:53 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery8-Sep-08 7:59
Mark Salsbery8-Sep-08 7:59 
GeneralRe: ParseCommandLine question Pin
sashoalm8-Sep-08 8:56
sashoalm8-Sep-08 8:56 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery8-Sep-08 9:15
Mark Salsbery8-Sep-08 9:15 
GeneralRe: ParseCommandLine question Pin
sashoalm8-Sep-08 21:43
sashoalm8-Sep-08 21:43 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery9-Sep-08 5:06
Mark Salsbery9-Sep-08 5:06 
AnswerRe: ParseCommandLine question Pin
Matthew Faithfull8-Sep-08 5:11
Matthew Faithfull8-Sep-08 5:11 
GeneralRe: ParseCommandLine question Pin
sashoalm8-Sep-08 5:24
sashoalm8-Sep-08 5:24 
GeneralRe: ParseCommandLine question Pin
Matthew Faithfull8-Sep-08 5:46
Matthew Faithfull8-Sep-08 5:46 
QuestionChanging the text color in the combobox dynamically Pin
hariakuthota8-Sep-08 3:56
hariakuthota8-Sep-08 3:56 
AnswerRe: Changing the text color in the combobox dynamically Pin
enhzflep8-Sep-08 17:14
enhzflep8-Sep-08 17:14 
QuestionMFC Datetime to String Pin
mehmetned8-Sep-08 3:29
mehmetned8-Sep-08 3:29 

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.