Hi all,
I Use Cfiledialog to open an file. Here is my code:
[CFileDialog fileOpen(TRUE,NULL,NULL,OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT,NULL,NULL,sizeof(OPENFILENAME);
if( fileOpen.DoModal ()==IDOK )
{
CString pathName = fileOpen.GetPathName();
}
In the release version it works perfectly, but in the debug version, when I execute my program, I get the following error:
Debug assertion failed!
file f:\vs70builds\9466\vc\mfcatl\ship\atlmfc\include\afxwin1.inl]
I have already read the documentation, but it doesn't give much help :-(
Thanks a lot
I Use Cfiledialog to open an file. Here is my code:
[CFileDialog fileOpen(TRUE,NULL,NULL,OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT,NULL,NULL,sizeof(OPENFILENAME);
if( fileOpen.DoModal ()==IDOK )
{
CString pathName = fileOpen.GetPathName();
}
In the release version it works perfectly, but in the debug version, when I execute my program, I get the following error:
Debug assertion failed!
file f:\vs70builds\9466\vc\mfcatl\ship\atlmfc\include\afxwin1.inl]
I have already read the documentation, but it doesn't give much help :-(
Thanks a lot