⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_59514.htm

📁 vc
💻 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>内容:&nbsp;&nbsp; 老大,我不知道您用的是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 &gt; 1000<BR>#pragma once<BR>#endif // _MSC_VER &gt; 1000<BR><BR>#include &#34;WinXPButtonST.h&#34;<BR>/////////////////////////////////////////////////////////////////////////////<BR>// CMy4Dlg dialog<BR><BR>class CMy4Dlg : public CDialog<BR>{<BR>// Construction<BR>public:<BR>&nbsp;&nbsp;&nbsp;&nbsp;CMy4Dlg(CWnd* pParent = NULL);&nbsp;&nbsp;&nbsp;&nbsp;// standard constructor<BR><BR>// Dialog Data<BR>&nbsp;&nbsp;&nbsp;&nbsp;//{{AFX_DATA(CMy4Dlg)<BR>&nbsp;&nbsp;&nbsp;&nbsp;enum { IDD = IDD_MY4_DIALOG };<BR>&nbsp;&nbsp;&nbsp;&nbsp;CWinXPButtonST m_OK;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// NOTE: the ClassWizard will add data members here<BR>&nbsp;&nbsp;&nbsp;&nbsp;//}}AFX_DATA<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;// ClassWizard generated virtual function overrides<BR>&nbsp;&nbsp;&nbsp;&nbsp;//{{AFX_VIRTUAL(CMy4Dlg)<BR>&nbsp;&nbsp;&nbsp;&nbsp;protected:<BR>&nbsp;&nbsp;&nbsp;&nbsp;virtual void DoDataExchange(CDataExchange* pDX);&nbsp;&nbsp;&nbsp;&nbsp;// DDX/DDV support<BR>&nbsp;&nbsp;&nbsp;&nbsp;//}}AFX_VIRTUAL<BR><BR>// Implementation<BR>protected:<BR>&nbsp;&nbsp;&nbsp;&nbsp;HICON m_hIcon;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;// Generated message map functions<BR>&nbsp;&nbsp;&nbsp;&nbsp;//{{AFX_MSG(CMy4Dlg)<BR>&nbsp;&nbsp;&nbsp;&nbsp;virtual BOOL OnInitDialog();<BR>&nbsp;&nbsp;&nbsp;&nbsp;afx_msg void OnSysCommand(UINT nID, LPARAM lParam);<BR>&nbsp;&nbsp;&nbsp;&nbsp;afx_msg void OnPaint();<BR>&nbsp;&nbsp;&nbsp;&nbsp;afx_msg HCURSOR OnQueryDragIcon();<BR>&nbsp;&nbsp;&nbsp;&nbsp;virtual void OnOK();<BR>&nbsp;&nbsp;&nbsp;&nbsp;virtual void OnCancel();<BR>&nbsp;&nbsp;&nbsp;&nbsp;afx_msg void OnBT();<BR>&nbsp;&nbsp;&nbsp;&nbsp;//}}AFX_MSG<BR>&nbsp;&nbsp;&nbsp;&nbsp;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 + -