About Release mode in VC++6
Today I noticed that when I run the game I''m making from the VC++ IDE (Release), some animations in my game doesn''t work. However, when I run the program file from Windows directly, everything works like it should. I''m not blaming VC++, I''m sure I made a mistake somewhere, but it would be easier to track down the problem if I knew what differences there are between running the file in Release vs. running it directly. Anyone?
/John
The only big difference is the current working directory. You should probably make your game extract the location of the exe (using GetModuleFileName) and load files relative to that path instead of the current working directory.
No, that can''t be what''s causing the problem, because all the images, levels, sounds, etc. is loaded correctly in both cases. It just seems to refuse to execute a little part of my code, when run from the IDE. Really strange... Aren''t there any other difference?
Thanks for your reply, anyways.
/John
Thanks for your reply, anyways.
/John
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement