What is the initial function to be called in MFC and what
it will do

Answers were Sorted based on User's Feedback



What is the initial function to be called in MFC and what it will do..

Answer / iridium

The question was for MFC and its InitInstance.

Is This Answer Correct ?    25 Yes 2 No

What is the initial function to be called in MFC and what it will do..

Answer / pallavi

Intial function called in MFC is AfxWinMain which is
WinMain equivalent. AfxWinMain then calls AfxWinInit which
initialises tha application and copies AfxWinMain
fub=nction parameters to the mamber variables of the
application object.then it calls InitApplication(only for
16 bit)/InitInstance(32 bit) .If all the above goes well
then Run function is called which starts the message loop.

Is This Answer Correct ?    16 Yes 2 No

What is the initial function to be called in MFC and what it will do..

Answer / abhishek soni

The WinMain function is called by the system as the initial
entry point for a Windows-based application. It initializes
the application, display its main window, and enter a
message retrieval-and-dispatch loop that is the top-level
control structure for the remainder of the application's
execution.

Is This Answer Correct ?    14 Yes 7 No

What is the initial function to be called in MFC and what it will do..

Answer / abhijit

wWinMainCRTStartup ... this is the first function that is called when the MFC application is UNICODE built and has GUI.
WinMainCRTStartup .. UNICODE MFC GUI Application

wMainCRTStartup .... UNICODE MFC Console Application

MainCRTStartup .... MFC Console Application

Is This Answer Correct ?    5 Yes 0 No

What is the initial function to be called in MFC and what it will do..

Answer / zerozero

InitApplication and InitInstance functions gets called
first by WinMain

Is This Answer Correct ?    6 Yes 2 No

What is the initial function to be called in MFC and what it will do..

Answer / pavan

It is CWinApp derived class constructor. Any MFC
application starts by calling global CWinApp object's class
constructor. It is global object that is created before
local variables and therefore constructor is called first.

Is This Answer Correct ?    3 Yes 1 No

What is the initial function to be called in MFC and what it will do..

Answer / man

EveryWindow application starts to execute WinMain() function
that is entry point.

Is This Answer Correct ?    3 Yes 3 No

What is the initial function to be called in MFC and what it will do..

Answer / uttam kumar

The heart of an MFC application is an object based on the
CWinApp class.InitInstance() of CWinApp class is called
early in the application's lifetime right after the
application starts running but before the window is
created.Unless InitInstance() creates a window,application
does not have a window.

Is This Answer Correct ?    2 Yes 2 No

What is the initial function to be called in MFC and what it will do..

Answer / ctharam

InitInstance() is a main function of a Class CWinThread. by default , it returns TRUE.

Is This Answer Correct ?    0 Yes 0 No

What is the initial function to be called in MFC and what it will do..

Answer / chandru

CWinMain function gets called.

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More MFC Interview Questions

What is socket?

3 Answers  


Name the Synchronization objects?

2 Answers  


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

0 Answers   University Exams,


Have you ever used win32 APIs ?

4 Answers   Microsoft,


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  






What is stack size in win32 program?

1 Answers   HCL,


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,


List out the basic features of MFC.

4 Answers   Mphasis,


What is document-view architecture ? Give me one real time example for SDI ?

2 Answers  


1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions

1 Answers  


What is the difference between workrer thread and UI thread

3 Answers   HCL,


How you create a button dynamically?

2 Answers  


Categories