CApp::Init

HRESULTCApp::Init(intnShowCmd, _ATL_OBJMAP_ENTRY*p, HINSTANCEh, GUID*plibid = NULL)

Initialize the application

Defined in: Application.h

Return Value

S_OK if the application initialized

Parameters

nShowCmd

Integer from the SW_XXX enumeration indicating how to show the window

p

pointer to ATL object map

h

Instance handle for the application

plibid = NULL

pointer to the type library ID

Comments

Initialize a regular, single-threaded app. Usually creates a main window.