Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OnPaint

Posted on 1998-06-03
1
Medium Priority
?
189 Views
Last Modified: 2013-11-19
I created a control inherited from CWnd. I do custom painting on it, but the control behaves differently in debug and release version, why?
0
Comment
Question by:fmichaud061597
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1315967
Typically, this means that you have code that is compiled differently.

For example, don't put anything in sections of

#if defined(_DEBUG)
#endif

or use the VERIFY() macro. Look for something like that in your program. Another thing to check is to make sure you are initializing every single variable to a known value. Otherwise, you may have garbage in them. This is especially true for pointers.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question