Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CAtlBaseModule Class

This class is instantiated in every ATL project.

class CAtlBaseModule : 
   public _ATL_BASE_MODULE

Name

Description

CAtlBaseModule::AddResourceInstance

Adds a resource instance to the list of stored handles.

CAtlBaseModule::GetHInstanceAt

Returns a handle to a specified resource instance.

CAtlBaseModule::GetModuleInstance

Returns the module instance from a CAtlBaseModule object.

CAtlBaseModule::GetResourceInstance

Returns the resource instance from a CAtlBaseModule object.

CAtlBaseModule::RemoveResourceInstance

Removes a resource instance from the list of stored handles.

CAtlBaseModule::SetResourceInstance

Sets the resource instance of a CAtlBaseModule object.

Name

Description

CAtlBaseModule::m_bInitFailed

A variable that indicates if the module initialization has failed.

An instance of CAtlBaseModule named _AtlBaseModule is present in every ATL project, containing a handle to the module instance, a handle to the module containing resources (which by default, are one and the same), and an array of handles to modules providing primary resources. CAtlBaseModule can be safely accessed from multiple threads.

This class replaces the obsolete CComModule class used in earlier versions of ATL.

Header: atlcore.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.