注册 登录
编程论坛 VC++/MFC

vc++中执行出现的问题,哪位高人可以帮忙看一看

郭艳娇 发布于 2022-02-23 13:03, 1530 次点击
--------------------Configuration: test - Win32 Debug--------------------
Compiling...
testView.cpp
D:\软件\VC++\Microsoft Visual Studio\MyProjects\test\testView.cpp(64) : error C2039: 'SetPixeIV' : is not a member of 'CDC'
        d:\软件\vc++\microsoft visual studio\vc98\mfc\include\afxwin.h(636) : see declaration of 'CDC'
执行 cl.exe 时出错.

test.exe - 1 error(s), 0 warning(s)
3 回复
#2
apull2022-02-23 15:21
SetPixeIV原型
BOOL SetPixeIV(HDC hdc, int X, int Y, COLORREF crColor)
hdc是设备环境句柄,你检查一下这个参数
#3
rjsp2022-02-24 08:52
error C2039: 'SetPixeIV' : is not a member of 'CDC'

说得没错呀,人家名字叫 SetPixelV,不是 SetPixeIV
#4
六六大顺12022-04-22 19:24
1