这是我写的 CDialogInquiry *m_dlginquiry;m_dlgnow = new CDialogNow();BOOL ret = m_dlginquiry.Create(IDD_DIALOG_INQUIRY,this);错误提示:left of '.Create' must have class/struct/union type谢谢各位大大,还是有问题啊这是源码:CDialogInquiry *m_dlginquiry;CDialogNow *m_dlgnow;m_dlgnow = new CDialogNow();m_dlginquiry = new CDialogInquiry();BOOL CDlgMain::OnInitDialog() {CDialog::OnInitDialog();m_tabCol.InsertItem(0,_T("实时状态"));m_tabCol.InsertItem(1,_T("操作控制"));m_dlginquiry->Create(IDD_DIALOG_INQUIRY,this);m_dlgnow->Create(IDD_DIALOG_NOW,this); m_dlgnow->ShowWindow(SW_SHOW); m_dlginquiry->ShowWindow(SW_HIDE); return TRUE; } 错误提示:\DlgMain.cpp(53) : error C2501: 'm_dlgnow' : missing storage-class or type specifiers\DlgMain.cpp(53) : error C2040: 'm_dlgnow' : 'int' differs in levels of indirection from 'class CDialogNow *'\DlgMain.cpp(53) : error C2440: 'initializing' : cannot convert from 'class CDialogNow *' to 'int'
3 回答
- 3 回答
- 0 关注
- 91 浏览
添加回答
举报
0/150
提交
取消