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...


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

Answers were Sorted based on User's Feedback



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

Answer / shanmuga

Becoz,through the CWinApp object only ,the application
starts.. If there exist more than one object there occurs a
conflict to proceed with which object.

Is This Answer Correct ?    6 Yes 1 No

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

Answer / narayan

You theApp object is replace with new name;

Eg

CdlgtestApp theApp;
CdlgtestApp theApp3; // now this is your applcation obj

CdlgtestApp theApp3;
CdlgtestApp theApp; // No effect

Is This Answer Correct ?    6 Yes 4 No

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

Answer / jdp

Because the CWinApp class encapsulates the main() method
which, as you know, there can be only one instance of in
any application.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / deepesh

because in constructor of CWinApp class
if it will called twice
ASSERT(AfxGetThread() == NULL);
will cause run time assertion

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sirama

Because MFC implemented it as Singleton CWinApp::Ctor.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More MFC Interview Questions

What is the difference between the SDI and MDI

3 Answers   Invensys,


what is the component of CLR ?

8 Answers   AZTEC, Symphony,


1) Enable or disable a Cancel button at run time?

1 Answers   HCL,


If there is more than 100 control in a window how we can change the Taborder of a controls

4 Answers   Satyam,


If i derive a new class from CObject what are the basic features my derived wil get ?

4 Answers   Microsoft,


how do u identify RTTI in vc++

4 Answers   Siemens,


Explain the flow of SDI application?

8 Answers   Mphasis,


1) How do you Destroy a Dialog Box ?

2 Answers   Honeywell,


Explain StretchBlt and BitBlt

1 Answers  


What four types of properties are supported by an ActiveX control?

1 Answers  


Does the application have more than one object? If Yes, Briefly explain.

2 Answers   Soltius Infotech,


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


Categories