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

📄 subject_52006.htm

📁 vc
💻 HTM
字号:
<p>
序号:52006 发表者:Fe 发表日期:2003-09-06 16:05:33
<br>主题:error C2065: 'UpdateDate' : undeclared identifier
<br>内容:我是照书上来的。创建了基于对话框的项目,ok按钮的单击处理函数OnOK。<BR>void CCityBreakDlg::OnOK() <BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// TODO: Add extra validation here<BR>&nbsp;&nbsp;&nbsp;&nbsp;CString strMessage;<BR>&nbsp;&nbsp;&nbsp;&nbsp;CString strHotel;<BR>&nbsp;&nbsp;&nbsp;&nbsp;CString strDest;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;// * * Transfer date from the control to the variables<BR>&nbsp;&nbsp;&nbsp;&nbsp;UpdateDate();<BR>&nbsp;&nbsp;&nbsp;&nbsp;// * * <BR>&nbsp;&nbsp;&nbsp;&nbsp;GetDlgItem(IDC_LUXURY + m_nHotel)-&gt;GetWindowText(strHotel);<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetDlgItem(IDC_LONDON + m_nDestination)-&gt;GetWindowText(strDest);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;// * * <BR>&nbsp;&nbsp;&nbsp;&nbsp;strMessage =&#34;Bon Voyage to a &#34; + strHotel + &#34;Hotel in &#34; + strDest;<BR>&nbsp;&nbsp;&nbsp;&nbsp;MessageBox(strMessage);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;CDialog::OnOK();<BR>}<BR>error C2065: 'UpdateDate' : 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>回复者:vc6 回复日期:2003-09-06 16:06:50
<br>内容:UpdateDate----&gt;UpdateData
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Fe 回复日期:2003-09-06 16:11:08
<br>内容:哈哈,<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 + -