Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to handle command line arguements from simple MFC
application ?

Answers were Sorted based on User's Feedback



How to handle command line arguements from simple MFC application ?..

Answer / satheesh

Using GetCommandLineArgs() function you can get the
arguments in MFC application at any time. In InitInstance
() function you can change the behaviour of the
application using those values.

Is This Answer Correct ?    5 Yes 0 No

How to handle command line arguements from simple MFC application ?..

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

Post New Answer

More MFC Interview Questions

Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?

2 Answers   Sony,


1)How to create ToolTip in MFC?

2 Answers  


Explain in sort What is CTargetObject?

2 Answers  


What are the types of button controls?

10 Answers  


what is the use of Mutex and critical section

2 Answers  


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


Hi can anyone explain about the synchronization objects types and where we are using in the code.

1 Answers  


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

0 Answers  


what message is sent to an application when the user presses the primary button?

0 Answers   University Exams,


How to handle command line arguements from simple MFC application ?

2 Answers   TCS,


What is subclassing?

2 Answers  


Categories