How to handle command line arguements from simple MFC
application ?
Answers were Sorted based on User's Feedback
Answer / muthu
If it is a simple dialog based application then by using the
'theApp' application object we access commandline argument.
To get the App class object:
AfxGetApp()
To get the command line arguments
theApp->m_lpCmdLine
Use it wherever it required.
| Is This Answer Correct ? | 1 Yes | 0 No |
Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?
1)How to create ToolTip in MFC?
Explain in sort What is CTargetObject?
What are the types of button controls?
what is the use of Mutex and critical section
What are the differences between MFC Exception macros and C++ exception keywords?
Hi can anyone explain about the synchronization objects types and where we are using in the code.
What are the advantages of using Doc/View or SDI over DialogBox
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
what message is sent to an application when the user presses the primary button?
How to handle command line arguements from simple MFC application ?
What is subclassing?