我的MFC dll工程想用WTL的东西,但是为什么一包含atlapp.h就出现下面的错误
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 
error C2065: 'SelectBitmap' : undeclared identifier 
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 
但是用WTL appwizard生成的就不会有错误就究竟是为什么呢?