我用全局变量实现了一些类,但是还是有一些不方便.
有象theApp的全局的吗?我用_Module但是太知道怎么用.
帮忙!!

解决方案 »

  1.   

    怎么用呀,给断demo.我用的vs.2003
      

  2.   

    _AtlBaseModuleAn 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.