Solved

OnPaint

Posted on 1998-06-03
1
181 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 85
Adapt this command to show who installed 29 106
Whole sheet autoscrub still needed 19 48
if loop in java 3 128
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now