Archived

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

Rhuno

Open Dialog box

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