还是那个MFC编辑框的赋值的问题,为什么声明为static CString r;出错,而去掉static就可编译?
我的代码:public:staticCStringR_Edit1;设置参数文件的代码:voidCPCI1710_SystemSetupMenu::OnBnClickedO...
我的代码:
public: static CString R_Edit1;
设置参数文件的代码:
void CPCI1710_SystemSetupMenu::OnBnClickedOk()
{
CString str;
GetDlgItem(IDC_EDIT1)->GetWindowText(str);
R_Edit1=str;
OnOK();
}
取参数的文件代码:
CPCI1710_SystemSetupMenu setupMenu;
//SetDlgItemInt(IDC_EDIT3,setupMenu.R_Edit1);
GetDlgItem(IDC_EDIT3)->SetWindowText(setupMenu.R_Edit1); 展开
public: static CString R_Edit1;
设置参数文件的代码:
void CPCI1710_SystemSetupMenu::OnBnClickedOk()
{
CString str;
GetDlgItem(IDC_EDIT1)->GetWindowText(str);
R_Edit1=str;
OnOK();
}
取参数的文件代码:
CPCI1710_SystemSetupMenu setupMenu;
//SetDlgItemInt(IDC_EDIT3,setupMenu.R_Edit1);
GetDlgItem(IDC_EDIT3)->SetWindowText(setupMenu.R_Edit1); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询