CComInitializer Class

class CComInitializer: public _Base

Many applications require initialization code to happen. SFL's architecture has initializers that mix this functionality in. CComInitialize class represents generalized intialization and termination points for SFL applications that need to use COM

As you might expect, Init calls CoInitializeEx for the application and Term calls CoUninitialize for the application.

See Also CNoopInitializer, COleInitializer, and CCommonControlsInitializer

Defined in: Application.h

Class Template Arguments

_Base = CNoopInitializer

Default initializaton.

coinit = COINIT_APARTMENTTHREADED

Default value representing which apartment to enter.

Class Members

static void Init()

Initialize the application. Calls CoInitializeEx with the coinit template parameter

static void Term()

Initialize the application. Calls CoUninitializeEx.