VC++的错误如何操作改正?

来源:百度知道 编辑:UC知道 时间:2024/05/22 03:55:24
模式对话框实例1View.cpp
1.error C2039: 'CreatSolidBrush' : is not a member of 'CBrush'
2. error C2065: 'Selectobject' : undeclared identifier

3.error C2039: 'DoMoDal' : is not a member of 'CMyColorDialog'
c:\wxde chengxu\模式对话框实例\模式对话框实例1\mycolordialog.h(13) : see declaration of 'CMyColorDialog'

4.error C2065: 'UpdateDate' : undeclared identifier
Generating Code...
Error executing cl.exe.

模式对话框实例1.exe - 4 error(s), 2 warning(s)
VC++自怎样加入头文件

1.CreatSolidBrush应该是CreateSolidBrush

2.Selectobject应该是SelectObject

3.DoMoDal是什么?再看看斜错了没有

4.UpdateDate应该是UpdateData

全部拼写错误,大小写,漏字母

第一个是CreateSolidBursh
第二个是SelectObject
第三个是DoModal
第四个可能是你忘记加入头文件了