Jump to content
  • Advertisement

Archived

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

Rhuno

Open Dialog box

This topic is 5240 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!