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 |
Does the application have more than one object? If no, then what is the reason?
Tell us something about MFC?
WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE
4 Answers Google, Microsoft, TCS,
What is the use of message map ?
Does the application have more than one object? If Yes, Briefly explain.
Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?
What four types of properties are supported by an ActiveX control?
how u can move CDC pointer to one line in cview?
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
How you find memory leaks?
is it possible to display a window .without using windowclass
what do you mean by psychic window?