changed &memDC to memDC.GetSafeHdc();
then it will ok.
then it will ok.
解决方案 »
- 请问如何实现VC左边的树形结构?用VC编程。
- VC 中嵌入汇编问题 ,等。。。
- 如何自动添加树形控件消息
- 关于CToolBar位置的问题!
- 在ATL中一个类调用另一个类的成员变量的问题(进者有分)
- 我每天都登陆CSDN,但可用分不见涨??
- 问题部分解决,谢谢onestab!请进来领600分!(四)
- 为什么,我的vc++6的函数参数自动提醒功能总是失效,有没有好的解决办法
- visual c++ Runtime Library Runtime Error!
- 现金求抠像功能函数 c++ delphi 的函数
- winsocket编程关于select函数
- 为什么我得不到GetRuntimeClass();
TransparentBlt(bitmap,50,50,rect.Width()-20,rect.Height()-20,MemDC.m_hDC,0,0,100,100,50);
它又说
E:\loppp\program\bmp1\bmp1Dlg.cpp(208) : error C2664: 'TransparentBlt' : cannot convert parameter 1 from 'struct HBITMAP__ *' to 'struct HDC__ *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.