description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CAtlBaseModule Class |
CAtlBaseModule Class |
11/04/2016 |
|
|
55ade80c-9b0c-4c51-933e-2158436c1096 |
This class is instantiated in every ATL project.
class CAtlBaseModule : public _ATL_BASE_MODULE
Name | Description |
---|---|
CAtlBaseModule::CAtlBaseModule | The constructor. |
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.
CAtlBaseModule
Header: atlcore.h
Adds a resource instance to the list of stored handles.
bool AddResourceInstance(HINSTANCE hInst) throw();
hInst
The resource instance to add.
Returns true if the resource was successfully added, false otherwise.
The constructor.
CAtlBaseModule() throw();
Creates the CAtlBaseModule
.
Returns a handle to a specified resource instance.
HINSTANCE GetHInstanceAt(int i) throw();
i
The number of the resource instance.
Returns the handle to the resource instance, or NULL if no corresponding resource instance exists.
Returns the module instance from a CAtlBaseModule
object.
HINSTANCE GetModuleInstance() throw();
Returns the module instance.
Returns the resource instance.
HINSTANCE GetResourceInstance() throw();
Returns the resource instance.
A variable that indicates if the module initialization has failed.
static bool m_bInitFailed;
True if the module initialized, false if it failed to initialize.
Removes a resource instance from the list of stored handles.
bool RemoveResourceInstance(HINSTANCE hInst) throw();
hInst
The resource instance to remove.
Returns true if the resource was successfully removed, false otherwise.
Sets the resource instance of a CAtlBaseModule
object.
HINSTANCE SetResourceInstance(HINSTANCE hInst) throw();
hInst
The new resource instance.
Returns the updated resource instance.