wxExtend
Additional templates and function helpers for wxWidgets
Loading...
Searching...
No Matches
Public Member Functions | List of all members
wxCoInitializer Class Reference

Create an object of this class on stack to initialize/cleanup the COM automatically. More...

#include <wxex/comutils.h>

Public Member Functions

 wxCoInitializer (DWORD dwCoInit=COINIT_MULTITHREADED)
 Initialize the COM.
 
virtual ~wxCoInitializer ()
 Dtor clean up.
 
bool IsOk () const
 Has the initialization been successful? (explicit test)
 
 operator bool () const
 Has the initialization been successful? (implicit test)
 

Detailed Description

Create an object of this class on stack to initialize/cleanup the COM automatically.

Constructor & Destructor Documentation

◆ wxCoInitializer()

wxCoInitializer::wxCoInitializer ( DWORD dwCoInit = COINIT_MULTITHREADED)

Initialize the COM.

Parameters
[in]dwCoInitThe concurrency model and initialization options for the thread to pass to CoInitializeEx()

Member Function Documentation

◆ IsOk()

bool wxCoInitializer::IsOk ( ) const
inline

Has the initialization been successful? (explicit test)

Returns
  • true if initialization succeeded
  • false otherwise

◆ operator bool()

wxCoInitializer::operator bool ( ) const
inline

Has the initialization been successful? (implicit test)

Returns
  • true if initialization succeeded
  • false otherwise

The documentation for this class was generated from the following files: