Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi everyone,

 

I've been trying to get the CFileDialog to work. It compiles fine, but any time the function runs to open the dialog, I get an error with Abort, Retry, Ignore errors. If I push Retry the dialog works fine. If I push Retry it debugs and points to this line in dlgfile.cpp:

 

m_ofn.hInstance = AfxGetResourceHandle();

 

Here's the code I wrote to call the dialog:

 

CFileDialog openIt(TRUE, ".txt", NULL, 0, "Text Files (*.txt)|*.txt|All Files (*.*)|*.*||");
openIt.DoModal();

 

I can't figure out what's going on... any ideas?

 

Thanks in advance,

--Brad

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...