Archived

This topic is now archived and is closed to further replies.

Open Dialog box

This topic is 4957 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m working on a class project and we are making a game using DirectX. However, we want to include an option in the menus for the user to load their own set of images into the game. The problem is, we can''t figure out how to get an Open Dialog box to work with DX. It keeps saying CFileDialog is an undeclared indentifier. Would it be a lot of work to implement some mfc into the project? If anyone has a good solution, I''d appreciate a response. Thanks.

Share this post


Link to post
Share on other sites
CFileDialog is an MFC class declared in the afxdlgs.h header.

However, it might be easier to just use the GetOpenFileName() function (include windows.h).

Share this post


Link to post
Share on other sites