| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 762 人关注过本帖
标题:创建属性时遇到的问题???
只看楼主 加入收藏
qqsb123
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2007-4-7
收藏
 问题点数:0 回复次数:1 
创建属性时遇到的问题???

我试了N次,不知道怎么解决这个问题!!求高人指点.在线等!!!

报错如下:
--------------------Configuration: 属性页 - Win32 Debug--------------------
Compiling...
属性页View.cpp
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(114) : error C2065: 'CSheetWindow' : undeclared identifier
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(114) : error C2146: syntax error : missing ';' before identifier 'sheetWindow'
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(114) : error C2065: 'sheetWindow' : undeclared identifier
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(116) : error C2228: left of '.m_page1' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(116) : error C2228: left of '.m_nRadius' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(117) : error C2228: left of '.m_page2' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(117) : error C2228: left of '.m_red' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(118) : error C2228: left of '.m_page2' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(118) : error C2228: left of '.m_green' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(119) : error C2228: left of '.m_page2' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(119) : error C2228: left of '.m_blue' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(121) : error C2228: left of '.DoModal' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(123) : error C2228: left of '.m_page1' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(123) : error C2228: left of '.m_nRadius' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(126) : error C2228: left of '.m_page2' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(126) : error C2228: left of '.m_red' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(126) : error C2228: left of '.m_page2' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(126) : error C2228: left of '.m_green' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(126) : error C2228: left of '.m_page2' must have class/struct/union type
C:\Program Files\VSE600ENU1\COMMON\MSDEV98\MYSELF2\属性页\属性页View.cpp(126) : error C2228: left of '.m_blue' must have class/struct/union type
Generating Code...
Compiling...
属性页.cpp
Generating Code...
Error executing cl.exe.

属性页.exe - 20 error(s), 0 warning(s)


下面是工程文件:

7LjW4VwS.rar (44.37 KB) 创建属性时遇到的问题???


[此贴子已经被作者于2007-4-21 17:41:43编辑过]

搜索更多相关主题的帖子: 属性 cpp identifier View 
2007-04-21 17:40
dcs020
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2007-4-23
收藏
得分:0 
在view类中的头文件处改

新加入这句 #include "SheetWindow.h"
把下面
afx_msg void OnCancelMode();
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
改为
// afx_msg void OnCancelMode();
// afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
2007-04-23 21:32
快速回复:创建属性时遇到的问题???
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013928 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved