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 |
What is the difference between ASSERT and VERIFY?
Whats is DDX & DDV in MFC?
how do u identify RTTI in vc++
How we can findout Memoryleaks, In what way it can be avoided
What is a critical section and how is it implemented?
Types of DLL's
how many types of classes are ther,what are that
1) create ToolTip in MFC?
What is the difference between Synchronous sockets and asynchronous sockets?
Have you ever used win32 APIs ?
I have 2 threads. One thread prints odd numbers and the second thread prints even numbers. Now, I have to execute the threads alternatively so that i can output 1,2,3,4,5,6,..... write code for this?
What is CArchive class dowes?