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

C / C++ / MFC

 
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 
I'm not sure what the cause is exactly but I may be able to offer some help finding it. Clearly you're using MFC and ParseCommandLine is going to be relying on the MFC startup code to provide it with the command line data. This in turn will be getting the data from the C Runtime startup code which runs before MFC gets started. This code in turn gets the command line arguments from the Windows Portable Executable Loader which gets them from the actual 'command line' via Windows itself.
Somewhere a link in this chain has broken and no command line parameters have been stored or passed on to the next stage.
I would start by tracking back the C Runtime startup code to a point where the command line is available e.g. __mainCRTStartup and then track it forward to find where the broken link is. I strongly suspect it will be between the C Runtime and MFC, probably because you need to call some MFC startup code that you aren't calling before calling ParseCommandLine.

"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

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 
GeneralRe: viewing pictures in tif format using CImage Pin
SandipG 8-Sep-08 20:50
SandipG 8-Sep-08 20:50 
GeneralRe: viewing pictures in tif format using CImage Pin
Mark Salsbery9-Sep-08 5:01
Mark Salsbery9-Sep-08 5:01 
GeneralRe: viewing pictures in tif format using CImage Pin
SandipG 9-Sep-08 5:14
SandipG 9-Sep-08 5:14 
AnswerRe: viewing pictures in tif format using CImage Pin
Mark Salsbery8-Sep-08 5:44
Mark Salsbery8-Sep-08 5:44 
QuestionAuto Run Application Pin
polopo8-Sep-08 2:16
polopo8-Sep-08 2:16 
AnswerRe: Auto Run Application Pin
CPallini8-Sep-08 2:21
mveCPallini8-Sep-08 2:21 

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.