Click here to Skip to main content
15,915,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Moving GDI+ objects question Pin
Niklas L5-Mar-11 5:39
Niklas L5-Mar-11 5:39 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 6:16
csrss5-Mar-11 6:16 
AnswerRe: Moving GDI+ objects question Pin
Andrew Brock5-Mar-11 2:42
Andrew Brock5-Mar-11 2:42 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:04
csrss5-Mar-11 3:04 
GeneralRe: Moving GDI+ objects question Pin
Andrew Brock5-Mar-11 3:09
Andrew Brock5-Mar-11 3:09 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:16
csrss5-Mar-11 3:16 
Question[solved] class size doesn't seem to be determined correctly [modified] Pin
Albert Holguin4-Mar-11 18:13
professionalAlbert Holguin4-Mar-11 18:13 
AnswerRe: class size doesn't seem to be determined correctly Pin
Niklas L4-Mar-11 23:14
Niklas L4-Mar-11 23:14 
I find it hard to believe that the size was incorrectly determined. What you could do is try to change the order of the class' instance variables, since it's more likely it has to do with member alignment, which is influenced by the size difference of bool and BOOL. The rearrangement of the members will not be a solution to your problem, but you might get new ideas for the reason of the problem. If you're lucky the error will turn up in a different way, which will add to the clues.

From what you describe, it sounds very likely that the constructor of the class is the naughty one. Check all non-trivial constructors of your instance members, and possible base class constructor code. Who knows, a 'clever' programmer might have made assumptions about the boolean flag
*(BOOL*)&m_bool = FALSE;


Well, just a few ideas...

GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 6:45
professionalAlbert Holguin5-Mar-11 6:45 
AnswerRe: class size doesn't seem to be determined correctly Pin
Ozer Karaagac4-Mar-11 23:22
professionalOzer Karaagac4-Mar-11 23:22 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 6:48
professionalAlbert Holguin5-Mar-11 6:48 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 10:21
professionalAlbert Holguin5-Mar-11 10:21 
GeneralRe: class size doesn't seem to be determined correctly Pin
Ozer Karaagac5-Mar-11 11:24
professionalOzer Karaagac5-Mar-11 11:24 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 11:42
professionalAlbert Holguin5-Mar-11 11:42 
AnswerRe: class size doesn't seem to be determined correctly Pin
CPallini4-Mar-11 23:34
mveCPallini4-Mar-11 23:34 
GeneralRe: class size doesn't seem to be determined correctly Pin
Albert Holguin5-Mar-11 6:50
professionalAlbert Holguin5-Mar-11 6:50 
AnswerRe: class size doesn't seem to be determined correctly Pin
Stephen Hewitt5-Mar-11 0:32
Stephen Hewitt5-Mar-11 0:32 
QuestionBest way to reduce a 128-bit MD5 to 64-bit Pin
Joe Woodbury4-Mar-11 12:04
professionalJoe Woodbury4-Mar-11 12:04 
AnswerRe: Best way to reduce a 128-bit MD5 to 64-bit PinPopular
Peter_in_27805-Mar-11 0:30
professionalPeter_in_27805-Mar-11 0:30 
GeneralRe: Best way to reduce a 128-bit MD5 to 64-bit Pin
Joe Woodbury5-Mar-11 6:04
professionalJoe Woodbury5-Mar-11 6:04 
QuestionCCriticalSection seems to cause some weirdness in dll Pin
Albert Holguin4-Mar-11 10:49
professionalAlbert Holguin4-Mar-11 10:49 
AnswerRe: CCriticalSection seems to cause some weirdness in dll Pin
Ozer Karaagac4-Mar-11 13:31
professionalOzer Karaagac4-Mar-11 13:31 
GeneralRe: CCriticalSection seems to cause some weirdness in dll Pin
Albert Holguin4-Mar-11 13:40
professionalAlbert Holguin4-Mar-11 13:40 
QuestionHow can I send LVN_COLUMNCLICK to the parent ? Pin
_Flaviu4-Mar-11 8:59
_Flaviu4-Mar-11 8:59 
AnswerRe: How can I send LVN_COLUMNCLICK to the parent ? Pin
Hans Dietrich4-Mar-11 18:46
mentorHans Dietrich4-Mar-11 18:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.