我用SDK写一个HELLO程序,编译时有这样的错误C:\MyProjects\drawpicture\drawpicture.cpp(12) : error C2065: 'hInstance' : undeclared identifier
C:\MyProjects\drawpicture\drawpicture.cpp(38) : error C2440: '=' : cannot convert from 'void *' to 'struct HBRUSH__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast我出错一行的代码是这样的。
wcex.hbrBackground = GetStockObject(WHITE_BRUSH);
请问为什么?
C:\MyProjects\drawpicture\drawpicture.cpp(38) : error C2440: '=' : cannot convert from 'void *' to 'struct HBRUSH__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast我出错一行的代码是这样的。
wcex.hbrBackground = GetStockObject(WHITE_BRUSH);
请问为什么?
解决方案 »
- 求助!API写的一个键盘操作,窗口显示不出来了??
- 并口WriteFile问题
- 如何在VC中编译Corba的程序?
- 关于ListCtrl的Report风格,被选上Item(深蓝色显示)发生改变时触动了哪个函数啊?如由第一项被选中变为第二项被选
- 请问如何让系统用默认的程序打开一个文件啊?
- CComboBox::AddString等函数不能正常使用,运行时报错,加上AFX_MANAGE_STATE(AfxGetStaticModuleState))也不管用。怎样解决?
- ■■■ 数据库操作异常捕获,谢谢 ■■■
- installshield 6.62 不能在window2000下安装?
- CWnd * 和 HWnd 有什么区别?不都是一个窗口的标识么?
- 调试问题,为什麽程序在debug 版下运行正常, 但release 版运行不正常
- 解决按钮的重画问题,再给100分!!
- 我只有一个dll文件,请问怎么样才能得到这个dll文件所对应的lib文件?用工具也行。
wcex.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
没有定义
2。
类型不匹配