What is the initial function to be called in MFC and what
it will do
Answers were Sorted based on User's Feedback
Answer / iridium
The question was for MFC and its InitInstance.
| Is This Answer Correct ? | 25 Yes | 2 No |
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 |
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 |
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 |
Answer / zerozero
InitApplication and InitInstance functions gets called
first by WinMain
| Is This Answer Correct ? | 6 Yes | 2 No |
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 |
Answer / man
EveryWindow application starts to execute WinMain() function
that is entry point.
| Is This Answer Correct ? | 3 Yes | 3 No |
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 |
1)set the Title for The File DialogBox, in MFC?
What function is used to retrieve the currently selected index in a list box?
How can server communicate with more than one client
what is message loop how mfc does it internally?
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
What is a message map, and what is the advantage of a message map over virtual functions?
In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?
What is the difference between Synchronous sockets and asynchronous sockets?
What is the use of message map ?
I want recent paper pattern for HP company?
What?s the difference between Modal and Modeless Dialog?
Explain Doc/View architecture