📄 subject_59514.htm
字号:
<p>
序号:59514 发表者:1.414 发表日期:2003-11-08 10:57:33
<br>主题:请大家帮我看看这段代码有什么问题,为什么老是无法编译通过,谢谢!
<br>内容:老是<BR>C:\Documents and Settings\aaa\桌面\4\4Dlg.cpp(51) : error C2065: 'm_OK' : undeclared identifier<BR>小弟在这里谢谢各位大哥了
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:michael 回复日期:2003-11-08 11:40:57
<br>内容: 老大,我不知道您用的是CButtonST还是CWinXPButtonST<BR>总之,在那个dialog的头文件里手工加上CXXXButton m_OK;就行了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:1.414 回复日期:2003-11-08 22:38:32
<br>内容:头文件如下,请大哥告诉我要怎么改啊!?<BR><BR>// 4Dlg.h : header file<BR>//<BR><BR>#if !defined(AFX_4DLG_H__12FD2E6A_1C94_46E1_91D4_41E820FF49A0__INCLUDED_)<BR>#define AFX_4DLG_H__12FD2E6A_1C94_46E1_91D4_41E820FF49A0__INCLUDED_<BR><BR>#if _MSC_VER > 1000<BR>#pragma once<BR>#endif // _MSC_VER > 1000<BR><BR>#include "WinXPButtonST.h"<BR>/////////////////////////////////////////////////////////////////////////////<BR>// CMy4Dlg dialog<BR><BR>class CMy4Dlg : public CDialog<BR>{<BR>// Construction<BR>public:<BR> CMy4Dlg(CWnd* pParent = NULL); // standard constructor<BR><BR>// Dialog Data<BR> //{{AFX_DATA(CMy4Dlg)<BR> enum { IDD = IDD_MY4_DIALOG };<BR> CWinXPButtonST m_OK;<BR> // NOTE: the ClassWizard will add data members here<BR> //}}AFX_DATA<BR><BR> // ClassWizard generated virtual function overrides<BR> //{{AFX_VIRTUAL(CMy4Dlg)<BR> protected:<BR> virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support<BR> //}}AFX_VIRTUAL<BR><BR>// Implementation<BR>protected:<BR> HICON m_hIcon;<BR><BR> // Generated message map functions<BR> //{{AFX_MSG(CMy4Dlg)<BR> virtual BOOL OnInitDialog();<BR> afx_msg void OnSysCommand(UINT nID, LPARAM lParam);<BR> afx_msg void OnPaint();<BR> afx_msg HCURSOR OnQueryDragIcon();<BR> virtual void OnOK();<BR> virtual void OnCancel();<BR> afx_msg void OnBT();<BR> //}}AFX_MSG<BR> DECLARE_MESSAGE_MAP()<BR>};<BR><BR>//{{AFX_INSERT_LOCATION}}<BR>// Microsoft Visual C++ will insert additional declarations immediately before the previous line.<BR><BR>#endif // !defined(AFX_4DLG_H__12FD2E6A_1C94_46E1_91D4_41E820FF49A0__INCLUDED_)
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:1.414 回复日期:2003-11-08 22:42:29
<br>内容:谢谢大哥了,我终于发现问题在那里了,真是太粗心了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -