Archived

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

DirextX and release mode?!?

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

Hello al. Me and a few friends are doing a RTS using direct draw. When we are in dubug mode, all icons/bitmaps, everything works fine. We go into release mode, and, well, all the icons no longer show up. Has anyone else had this probelm? And if so, how did ya fix it? Any input would be greatly appreciated. Thanks ahead of time PrettyB

Share this post


Link to post
Share on other sites
Hmm, shouldn''t it not matter whether it''s release or not because when you run through the Visual C++ IDE, it uses the root directory of your project as the working directory for your prog

Share this post


Link to post
Share on other sites
He didn''t say whether or not he was running from Visual C++. That was the only thing I could think of without being a problem with the code.


-David

Share this post


Link to post
Share on other sites
The Debug/Release issue is often due to relevant program code inside of ASSERT macros, which will not be compiled in Release builds, e.g.: ASSERT(hBmp = LoadBitmap(...));

If that''s the case, simply replace ASSERT with VERIFY and it''ll work just fine.

Share this post


Link to post
Share on other sites