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.

 

posted on 2009-11-06 12:03  apple0809  阅读(317)  评论(0编辑  收藏  举报