Jump to content
  • Advertisement

Archived

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

DrJohnB

D3DXCreateTextureFromFile() call in failing when I run program from the VC++ IDE <m>

This topic is 6337 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

This is the line that is failing: hr = D3DXCreateTextureFromFile(pID3DDevice, FILENAME, &pTexture); if(FAILED(hr)) break; Well here''s FILENAME: #define FILENAME "dx5_logo.bmp" and I put that file in the debug directory. It fails when I hit F5 from the IDE, but if I run the .exe from the debug directory it works perfectly. What''s wrong? Thanks..

Share this post


Link to post
Share on other sites
Advertisement
The default working directory is the project directory, not the Debug or Release directory. You can change this in project->settings.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!