Advertisement

Question

Started by September 04, 2000 10:33 PM
2 comments, last by GooRoo 24 years, 2 months ago
Hello everyone, here''s my question. I built Nehe''s Lesson 9 using Visual Studio 6.0 C++ and my executable''s size is much larger than Nehe''s. That''s probably because he built his in release mode instead of debug, but when I open my executable, it says "Initialization Failed", while Nehe''s executable opens without a problem. What gets me is that Lesson 9 runs fine when I execute it from Visual Studio like pressing Ctrl+F5 after manually building it, but when I double click on the executable thats outputed, it returns that Initialization error. I pinpointed the error down to the line FILE=fopen("Filename", r); in function LoadBMP. Any suggestions would be very helpful! Thanks!
your executable must be in a wrong directory, there, he cant open the file for reading, because he dont find it
cyberg- cyberg_coder@hotmail.com- http://members.xoom.com/cybergsoft
Advertisement
it cant find the bmp file, try changing the working directory in project>settings
Thank you! Sometimes the answers lie right under your nose! Or i''m just very careless!

This topic is closed to new replies.

Advertisement