error C2064: term does not evaluate to a function
BOOL CSheet1::OnInitDialog() {
CPropertyPage::OnInitDialog();
CRect rect;
GetDlgItem(IDD_FORMVIEW)->GetWindowRect(&rect);
m_formview.Create(
"CFormview","软件",WS_CHILD|WS_VISIBLE,
CRect(20,20,20,20),NULL,NULL,m_hWnd);
m_formview.ModifyStyleEx(0,WS_EX_CONTROLPARENT);
m_formview.ModifyStyle(0,WS_TABSTOP);
ScreenToClient(&rect);
m_formview.SetWindowPos(NULL,rect.left-7,rect.top-7,0,0,SWP_NOZORDER|SWP_NOSIZE|SWP_NOACTIVATE);
return TRUE;
}
我在属性页中加入CFormView 框架红色部分出现这样的错误,
error C2664: 'Create' : cannot convert parameter 7 from 'struct HWND__ *' to 'struct CCreateContext *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
这该怎么解决
[此贴子已经被作者于2006-10-28 16:30:23编辑过]