Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cfiledialog problem in debug version

Status
Not open for further replies.

marijota

MIS
Nov 28, 2003
1
DE
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



 
You may be have not enough rights on drive f: or some it's subfolders, where afxwin1.inl is. Release does not need this file, only debugger.
Debug symbols can be wrong installed too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top