//....
CDlgNewFolder dlg;
dlg.m_pSoap = pDevice->m_pSoap;
strcpy(dlg.m_szParentPath,strSub);
UpdateData(TRUE);
char szNewFolderPath[MAX_PATH],szNewName[MAX_PATH];
strcpy(szNewName, dlg.m_szFolderName);
if(dlg.DoModal() != IDOK) return;
//....
提示没有定义,到底怎么回事啊!
CDlgNewFolder dlg;
dlg.m_pSoap = pDevice->m_pSoap;
strcpy(dlg.m_szParentPath,strSub);
UpdateData(TRUE);
char szNewFolderPath[MAX_PATH],szNewName[MAX_PATH];
strcpy(szNewName, dlg.m_szFolderName);
if(dlg.DoModal() != IDOK) return;
//....
提示没有定义,到底怎么回事啊!
解决方案 »
- 树根节点下的所有一级节点
- 请各位高手不吝赐教: Combobox中dropdown风格的listbox里有很多项,会出现垂直滚动条时,怎样不让其选择项作为第一项显示?
- VC对特权文件夹的操作
- vs2008中调试项目程序时未出错也没有警告,为什么却自动退出仿真?
- 求将贝塞尔曲线离散成若干点的算法
- ActiveX Message Windowless
- 如何利用TimeGettime 处理网络封包?
- 请问vc下怎么强制激活“代码提示”功能?
- 增加记录AddNew()的问题
- 那位大虾知道Netscape plug-in SDK的下载网址?(无内容)
- 如何建立8000*8000的bmp图片呀?
- Error retriving data.
呵呵,参见MSDN中的定义:CWnd::UpdateData,如果是从CWnd继承的类,必须包含#include "StdAfx.h"
BOOL bSaveAndValidate = TRUE
);其中,bSaveAndValidate是:
Flag that indicates whether dialog box is being initialized (FALSE) or data is being retrieved (TRUE). 返回值:
Nonzero if the operation is successful; otherwise 0. If bSaveAndValidate is TRUE, then a return value of nonzero means that the data is successfully validated.注意:
The framework automatically calls UpdateData with bSaveAndValidate set to FALSE when a modal dialog box is created in the default implementation of CDialog::OnInitDialog. The call occurs before the dialog box is visible. The default implementation of CDialog::OnOK calls this member function with bSaveAndValidate set to TRUE to retrieve the data, and if successful, will close the dialog box. (If the Cancel button is clicked in the dialog box, the dialog box is closed without the data being retrieved.)
如果你这个代码是在对话框中的话,就检查一下有没有DDX和DDV.
UpdateData(TRUE);表示将控件窗口中的数据取到变量中并进行合法性检查。
你有控件及其变量吗?