typedef BOOL (*OPMDIALOGPROC)(void);类型调试
STDMETHODIMP CTextDlgProp::GetCustomDialogProc (OPMDIALOGPROC *pDialogProc) {
/*if ( pDialogProc == NULL )
return (E_POINTER) ;*/
// TODO: add your code here
*pDialogProc = rPropCallBack;
return (S_OK) ;
//return (E_NOTIMPL) ;
}
BOOL CTextDlgProp::rPropCallBack(void)
{
return FALSE;
}
其中 pDialogProc 的解释是
Input dialog procedure; defined as
typedef BOOL (*OPMDIALOGPROC)(void);
sdk的原文如下
virtual HRESULT
STDMETHODCALLTYPE GetCustomDialogProc(
[out] OPMDIALOGPROC* pDialogProc) = 0;
pDialogProc Input dialog procedure; defined as
typedef BOOL (*OPMDIALOGPROC)(void);
If implemented, the Properties window code will call the function passed back here. If the return value of the OPMDIALOGPROC is TRUE, changes to the property will be updated.
但是执行的时候总是出现如下错误,error C3867: 'CTextDlgProp::rPropCallBack': function call missing argument list; use '&CTextDlgProp::rPropCallBack' to create a pointer to member
请大家帮我看看是怎么错的。如何调试。