I am just starting a new ATL / WTL project and I was wondering if the _Module global variable is needed?
A few years ago, when I started working with WTL, it was required (at least for ATL 3.0) to define a global variable, for example:
CAppModule _Module;
For ATL to work correctly. But lately I read somewhere that this might not be needed anymore (yet the code created by the wizard still uses it). In addition, I searched through Visual C ++ include directories, and it only raised _Module in several places - primarily in the ATL COM registry entry.
So what else do I need to define a global variable for using ATL these days?
source
share