Jump to content
  • Advertisement

Archived

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

glworm

Build independent exe file under visual studio

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

Hi, All, I tried to run lessonX.exe directly in the debug folder of Nehe''s tutorial examples, but there was an "Initialization Error" each time. However, it could work under Visual Studio''s IDE. Can anybody tell me why and how to build an independent exe file with MS Visual Stdio IDE? Many thanks! glworm

Share this post


Link to post
Share on other sites
Advertisement
I''m not sure about that particular tutorial, but you have to make sure that all the files the exe tries to load lies in the same folder (if you haven''t specified path''s explicitly). When you compile an exe inside the ide it will end up in the Release or the Debug folder(depending on your active configuration), but the file will behave as though it resided in the projects root directory.

Good luck

Share this post


Link to post
Share on other sites
Yeah, it works! The reason is that one function read a BMP file from a subdirctory. After I put them together. Everything is ok. Thank you.

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!