Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiongetting dependent DLLS on a particular .exe [modified] Pin
kir_MFC8-Jan-09 17:49
kir_MFC8-Jan-09 17:49 
AnswerRe: getting dependent DLLS on a particular .exe Pin
Naveen8-Jan-09 18:15
Naveen8-Jan-09 18:15 
AnswerRe: getting dependent DLLS on a particular .exe Pin
«_Superman_»8-Jan-09 18:27
professional«_Superman_»8-Jan-09 18:27 
QuestionCImageList when .draw -> no more transparent Pin
karhong8-Jan-09 17:15
karhong8-Jan-09 17:15 
AnswerRe: CImageList when .draw -> no more transparent Pin
Naveen8-Jan-09 18:29
Naveen8-Jan-09 18:29 
GeneralRe: CImageList when .draw -> no more transparent Pin
karhong8-Jan-09 18:42
karhong8-Jan-09 18:42 
GeneralRe: CImageList when .draw -> no more transparent Pin
Iain Clarke, Warrior Programmer9-Jan-09 0:28
Iain Clarke, Warrior Programmer9-Jan-09 0:28 
QuestionPreventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
D. Miller8-Jan-09 13:18
D. Miller8-Jan-09 13:18 
Hi all,

We have a situation where we need to check that the 'this' pointer is not null in a (non-virtual) member function. The problem is that the class it is in is sometimes involved in a multiple inheritance hierarchy where it is not the first base class and thus the 'this' pointer is adjusted by the compiler before it is given to our function. I've read that "some" compilers will explicitly check for null "this" pointers and not adjust them to prevent this issue; however, it does not seem that MSVC++ 9 behaves this way. Is there by any chance a flag that can be set to enable this behavior?

If there is not, what suggestions do you have on a way of reliably detecting this situation? One thought is to simply compare vs a sufficiently large value such that any offsets would be well within the range - perhaps the system reserved memory range (0 - 0x0000 FFFF). Any others are welcome. Thanks in advance.
AnswerRe: Preventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
Stuart Dootson8-Jan-09 13:39
professionalStuart Dootson8-Jan-09 13:39 
GeneralRe: Preventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
D. Miller9-Jan-09 1:47
D. Miller9-Jan-09 1:47 
GeneralRe: Preventing / Checking null 'this' pointer adjustment w/ Multiple Inheritance Pin
Stuart Dootson9-Jan-09 2:20
professionalStuart Dootson9-Jan-09 2:20 
QuestionOverflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 7:21
BobInNJ8-Jan-09 7:21 
GeneralRe: Overflowing the Windows’s message Queue Pin
Luc Pattyn8-Jan-09 7:51
sitebuilderLuc Pattyn8-Jan-09 7:51 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 10:06
BobInNJ8-Jan-09 10:06 
AnswerRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 8:56
Code-o-mat8-Jan-09 8:56 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 10:10
BobInNJ8-Jan-09 10:10 
GeneralRe: Overflowing the Windows’s message Queue Pin
David Crow8-Jan-09 10:15
David Crow8-Jan-09 10:15 
GeneralRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 10:31
Code-o-mat8-Jan-09 10:31 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 11:18
BobInNJ8-Jan-09 11:18 
GeneralRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 21:45
Code-o-mat8-Jan-09 21:45 
GeneralRe: Overflowing the Windows’s message Queue Pin
David Crow9-Jan-09 3:32
David Crow9-Jan-09 3:32 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ9-Jan-09 6:20
BobInNJ9-Jan-09 6:20 
GeneralRe: Overflowing the Windows’s message Queue Pin
BobInNJ8-Jan-09 12:02
BobInNJ8-Jan-09 12:02 
AnswerRe: Overflowing the Windows’s message Queue Pin
Roger Stoltz8-Jan-09 12:05
Roger Stoltz8-Jan-09 12:05 
GeneralRe: Overflowing the Windows’s message Queue Pin
Code-o-mat8-Jan-09 21:38
Code-o-mat8-Jan-09 21:38 

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.