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

C / C++ / MFC

 
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 
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 
Mark Salsbery wrote:
I have no idea what you're talking about.

I thought you were talking about having to redistribute the MFC DLLs.

Sorry about the misunderstanding. I've written in my earlier post 'The MFC dll is linked to a different CRT than the exe'. I meant 'The MFC dll might be linked' and the error might come because of this. Otherwise why would it be correct in my InitInstance, then stop being correct when I step into ParseCommandLine?

I was thinking that there are two copies of __argc and __argv, one for the EXE and one for the MFC DLLs, and ParseCommandLine looks at a different variable. I've had a similar problem when I used a static variable in a function that was inside the class body. I had the variable correctly initialized in one cpp file, then when the function was called from another cpp file, the variable was uninitialized. I found out that I didn't have a single static variable, instead I had a different static variable for each cpp file where the function was invoked.

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

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 
AnswerRe: MFC Datetime to String Pin
toxcct8-Sep-08 3:42
toxcct8-Sep-08 3:42 
Questionviewing pictures in tif format using CImage Pin
susanne18-Sep-08 2:24
susanne18-Sep-08 2:24 
AnswerRe: viewing pictures in tif format using CImage Pin
SandipG 8-Sep-08 2:53
SandipG 8-Sep-08 2:53 
GeneralRe: viewing pictures in tif format using CImage Pin
susanne18-Sep-08 3:00
susanne18-Sep-08 3:00 
GeneralRe: viewing pictures in tif format using CImage Pin
SandipG 8-Sep-08 3:21
SandipG 8-Sep-08 3:21 
GeneralRe: viewing pictures in tif format using CImage Pin
Mark Salsbery8-Sep-08 5:46
Mark Salsbery8-Sep-08 5:46 

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.