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

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

0 Answers  


How to handle command line arguements from simple MFC application ?

2 Answers   TCS,


What is thread & process?

15 Answers   Exaband,


WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE

4 Answers   Google, Microsoft, TCS,


what if we provide two message handler for same message ?

1 Answers  


What view class enables you to use an edit control as a view?

1 Answers  


How to update windows title bar dynamically?

7 Answers   HCL,


Name the Synchronization objects?

2 Answers  


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,


Tell me the work of HTREDUCE and HTZOOM

1 Answers   E Logic,


What is the difference between regular dlls and extended dlls?

2 Answers  


Explain about MDI and CMultiDocTemplate ?

2 Answers  


Categories