VS2005 WTL add ATL error! Solution.....

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.

 

转载于:https://www.cnblogs.com/abo77281/archive/2009/11/06/1597313.html

你可能感兴趣的:(VS2005 WTL add ATL error! Solution.....)