Advertisement

Build independent exe file under visual studio

Started by April 01, 2003 03:34 AM
1 comment, last by glworm 21 years, 11 months ago
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
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
Advertisement
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.

This topic is closed to new replies.

Advertisement