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 component of CLR ?
What interface must be supported by an ActiveX control?
List out the parameters of WinMain Function.
what do you mean by psychic window?
How to update windows title bar dynamically?
What?s the difference between Modal and Modeless Dialog?
what is the difference between compiling and building?
Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer
Which MFC function is used to display output?
1)At run-time, you can change the icon by calling the LoadIcon() function?
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 four types of properties are supported by an ActiveX control?