Wanting2LearnMan
asked on
'CDialog::SHInitDialog' : function does not take 1 arguments
I get error C2660: 'CDialog::SHInitDialog' : function does not take 1 arguments
with the below code.
I am converting an eVC++ project to VS2005. How can I solve this?
BOOL CMyClass::OnInitDialog()
{
CDialog::OnInitDialog();
SHINITDLGINFO shidi;
shidi.dwMask = SHIDIM_FLAGS;
shidi.dwFlags =SHIDIF_FULLSCREENNOMENUBA R;
shidi.hDlg = m_hWnd;
SHInitDialog(&shidi);
}
with the below code.
I am converting an eVC++ project to VS2005. How can I solve this?
BOOL CMyClass::OnInitDialog()
{
CDialog::OnInitDialog();
SHINITDLGINFO shidi;
shidi.dwMask = SHIDIM_FLAGS;
shidi.dwFlags =SHIDIF_FULLSCREENNOMENUBA
shidi.hDlg = m_hWnd;
SHInitDialog(&shidi);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
actual SHInitDialog() is called from OnInitiDialog() later on, so you might want to use :: SHInitDialog() as previous post suggests