共用方式為


CAtlBaseModule Class

This class is instantiated in every ATL project.

class CAtlBaseModule :
   public _ATL_BASE_MODULE

Remarks

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.

Requirements

Header: atlcore.h

See Also

Reference

ATL Module Classes

Other Resources

CAtlBaseModule Members

ATL Class Overview