WTL add ATL object error: ATL classes can only be added to MFC EXE and MFC Regular DLL projects or projects with full ATL support.
Modify C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\1033\common.js
change the line: in function IsATLProject()
if (strTypeString == "ATL::CComModule" || strTypeString == "ATL::CAutoThreadModule")
to:
if (strTypeString == "ATL::CComModule" || strTypeString == "ATL::CAutoThreadModule" || strTypeString =="WTL::CServerAppModule" || strTypeString == "WTL::CAppModule")
you can find three parts about "if (strTypeString == "ATL::CComModule" || strTypeString == "ATL::CAutoThreadModule")"
I changed all the three parts.
Now I can use my Vs2005 WTL add a ATL project.