문제
WTL Project를 생성후 ATL Simple Object class를 Add Class Wizard로 추가할때 "ATL classes can only be added MFC EXE and MFC DLL projects or projects with full ATL support"라는 에러가 뜬다.
원인
해당 Wizard에서 WTL Project가 ATL을 지원한다는 것을 이해하지 못해서이다.
해결
VisualStudio Wizard관련 파일을 일부 수정한다.
http://www.codeproject.com/wtl/WTLExpress.asp?df=100&forumid=255873&exp=0&select=1637863#xx1637863xx
One solution is to modify C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\1033\common.js as follows:
1. locate the function
2. change the line:
to:
3. save your changes
WTL Project를 생성후 ATL Simple Object class를 Add Class Wizard로 추가할때 "ATL classes can only be added MFC EXE and MFC DLL projects or projects with full ATL support"라는 에러가 뜬다.
원인
해당 Wizard에서 WTL Project가 ATL을 지원한다는 것을 이해하지 못해서이다.
해결
VisualStudio Wizard관련 파일을 일부 수정한다.
http://www.codeproject.com/wtl/WTLExpress.asp?df=100&forumid=255873&exp=0&select=1637863#xx1637863xx
One solution is to modify C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\1033\common.js as follows:
1. locate the function
IsATLProject2. change the line:
if (strTypeString == "ATL::CComModule" || strTypeString == "ATL::CAutoThreadModule")to:
if (strTypeString == "ATL::CComModule" || strTypeString == "ATL::CAutoThreadModule" || strTypeString == "WTL::CServerAppModule" || strTypeString == "WTL::CAppModule")3. save your changes
그리고 본문과 아무 관련이 없는 오늘의 짤방.
