It took me a long time to track down these link errors:
main.obj : error LNK2001: unresolved external symbol "long __stdcall ATL::AtlWinModuleInit(struct ATL::_ATL_WIN_MODULE70 *)" (?AtlWinModuleInit@ATL@@YGJPAU_ATL_WIN_MODULE70@1@@Z)
main.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
The solution is to include atls.lib (for release builds) or atlsd.lib (for debug builds) in your linker dependencies.
This posting is provided "AS IS" with no warranties, and confers no rights.