WTL 编译错误
网上下载了一个WTL程序,编译无法通过,错误如下:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(4628) : warning C4005: '_RICHEDIT_VER' : macro redefinition
F:\Study work\codeproject\kPad_src\stdafx.h(17) : see previous definition of '_RICHEDIT_VER'
C:\WTL80\INCLUDE\atlgdi.h(3403) : error C2664: 'CreateCompatibleDC' : cannot convert parameter 1 from 'struct HDC__ *' to 'class CDC *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\WTL80\INCLUDE\atlgdi.h(3407) : error C2065: 'SelectBitmap' : undeclared identifier
C:\WTL80\INCLUDE\atlgdi.h(3407) : error C2440: '=' : cannot convert from 'int' to 'struct HBITMAP__ *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
VC 6的。
代码下载地址:
http://www.codeproject.com/KB/wtl/kpad.aspx
不知道是否有人出现过此类问题,还请帮忙解决下。