Hi all,
I use a CFileDialog object in my application, and although it works on perfect with Windows 2000, it does not with windows 98.
Here is my code :
CFileDialog *browse;
browse=new CFileDialog(true,"bin",NULL,OFN_HIDEREADONLY,"Binary Files (*.bin)|*.bin||",NULL);
browse->m_pOFN->lStructSize=(DWORD)sizeof(OPENFILENAME);
if(browse->DoModal()==IDCANCEL)
{
DWORD err;
err=CommDlgExtendedError();
if (err)
MessageBox("File browsing not available",NULL,MB_OK|MB_ICONINFORMATION);
return;
}
With Windows 98, it never show the box. When I search for error , I got CDERR_STRUCTSIZE, but I do initialize the struct size, so I cannot see where is the problem !!!
If someone has an idea...
foxjoker
I use a CFileDialog object in my application, and although it works on perfect with Windows 2000, it does not with windows 98.
Here is my code :
CFileDialog *browse;
browse=new CFileDialog(true,"bin",NULL,OFN_HIDEREADONLY,"Binary Files (*.bin)|*.bin||",NULL);
browse->m_pOFN->lStructSize=(DWORD)sizeof(OPENFILENAME);
if(browse->DoModal()==IDCANCEL)
{
DWORD err;
err=CommDlgExtendedError();
if (err)
MessageBox("File browsing not available",NULL,MB_OK|MB_ICONINFORMATION);
return;
}
With Windows 98, it never show the box. When I search for error , I got CDERR_STRUCTSIZE, but I do initialize the struct size, so I cannot see where is the problem !!!
If someone has an idea...
foxjoker