Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tooltips on a CTreeCtrl... I give up!! Pin
Sheng Jiang 蒋晟13-Dec-05 9:53
Sheng Jiang 蒋晟13-Dec-05 9:53 
GeneralRe: Tooltips on a CTreeCtrl... I give up!! Pin
Nitron13-Dec-05 9:56
Nitron13-Dec-05 9:56 
AnswerOT Pin
ddmcr13-Dec-05 23:31
ddmcr13-Dec-05 23:31 
QuestionHow do I pass an argument to a windows program? Pin
ktaustin13-Dec-05 9:11
ktaustin13-Dec-05 9:11 
QuestionRe: How do I pass an argument to a windows program? Pin
David Crow13-Dec-05 9:22
David Crow13-Dec-05 9:22 
AnswerRe: How do I pass an argument to a windows program? Pin
ktaustin13-Dec-05 9:30
ktaustin13-Dec-05 9:30 
GeneralRe: How do I pass an argument to a windows program? Pin
David Crow13-Dec-05 9:41
David Crow13-Dec-05 9:41 
AnswerRe: How do I pass an argument to a windows program? Pin
TheGreatAndPowerfulOz13-Dec-05 9:26
TheGreatAndPowerfulOz13-Dec-05 9:26 
the main may be in a library you're linking to, as in the case with MFC.

Are you using MFC?

If so you can override InitInstance in your CWinApp derived class.

CWinApp::m_lpCmdLine has the command line

the WIN32 API GetCommandLine() will also give you the command line and you can use CommandLineToArgvW() to parse it into argv stile array of strings. However, if you call that, you will need to use GetCommandLineW()

Hope this helps

-- modified at 15:27 Tuesday 13th December, 2005
GeneralRe: How do I pass an argument to a windows program? Pin
ktaustin13-Dec-05 9:38
ktaustin13-Dec-05 9:38 
AnswerRe: How do I pass an argument to a windows program? Pin
ThatsAlok13-Dec-05 22:19
ThatsAlok13-Dec-05 22:19 
QuestionLooking for API to get the registered .txt editor Pin
Ian Bowler13-Dec-05 8:36
Ian Bowler13-Dec-05 8:36 
AnswerRe: Looking for API to get the registered .txt editor Pin
TheGreatAndPowerfulOz13-Dec-05 9:04
TheGreatAndPowerfulOz13-Dec-05 9:04 
GeneralRe: Looking for API to get the registered .txt editor Pin
Ian Bowler14-Dec-05 6:54
Ian Bowler14-Dec-05 6:54 
AnswerRe: Looking for API to get the registered .txt editor Pin
David Crow13-Dec-05 9:25
David Crow13-Dec-05 9:25 
GeneralRe: Looking for API to get the registered .txt editor Pin
Ian Bowler14-Dec-05 6:56
Ian Bowler14-Dec-05 6:56 
AnswerRe: Looking for API to get the registered .txt editor Pin
ThatsAlok13-Dec-05 22:16
ThatsAlok13-Dec-05 22:16 
GeneralRe: Looking for API to get the registered .txt editor Pin
Ian Bowler14-Dec-05 6:56
Ian Bowler14-Dec-05 6:56 
QuestionBuilding and testing a deskband Pin
PJ Arends13-Dec-05 8:26
professionalPJ Arends13-Dec-05 8:26 
AnswerRe: Building and testing a deskband Pin
TheGreatAndPowerfulOz13-Dec-05 9:07
TheGreatAndPowerfulOz13-Dec-05 9:07 
GeneralRe: Building and testing a deskband Pin
PJ Arends13-Dec-05 12:48
professionalPJ Arends13-Dec-05 12:48 
GeneralRe: Building and testing a deskband Pin
TheGreatAndPowerfulOz13-Dec-05 13:10
TheGreatAndPowerfulOz13-Dec-05 13:10 
AnswerRe: Building and testing a deskband Pin
Aamir Butt13-Dec-05 21:07
Aamir Butt13-Dec-05 21:07 
QuestionAddress of a Class object Pin
ddmcr13-Dec-05 8:17
ddmcr13-Dec-05 8:17 
AnswerRe: Address of a Class object Pin
Chris Losinger13-Dec-05 9:08
professionalChris Losinger13-Dec-05 9:08 
AnswerRe: Address of a Class object Pin
Dominik Reichl13-Dec-05 9:10
Dominik Reichl13-Dec-05 9:10 

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.