📄 subject_52006.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> // TODO: Add extra validation here<BR> CString strMessage;<BR> CString strHotel;<BR> CString strDest;<BR><BR> // * * Transfer date from the control to the variables<BR> UpdateDate();<BR> // * * <BR> GetDlgItem(IDC_LUXURY + m_nHotel)->GetWindowText(strHotel);<BR> GetDlgItem(IDC_LONDON + m_nDestination)->GetWindowText(strDest);<BR><BR> // * * <BR> strMessage ="Bon Voyage to a " + strHotel + "Hotel in " + strDest;<BR> MessageBox(strMessage);<BR><BR> <BR> 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---->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 + -