Click here to Skip to main content
15,921,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: overriding functions Pin
Maximilien14-Apr-03 9:25
Maximilien14-Apr-03 9:25 
Generalah! I see Pin
ns15-Apr-03 0:53
ns15-Apr-03 0:53 
GeneralRe: overriding functions Pin
Chris Losinger14-Apr-03 10:17
professionalChris Losinger14-Apr-03 10:17 
GeneralRe: overriding functions Pin
Beer14-Apr-03 11:26
Beer14-Apr-03 11:26 
GeneralRe: overriding functions Pin
Ravi Bhavnani14-Apr-03 18:17
professionalRavi Bhavnani14-Apr-03 18:17 
GeneralThanks to everyone Pin
ns15-Apr-03 0:55
ns15-Apr-03 0:55 
QuestionSetPixel with GDI+ ? Pin
cromag14-Apr-03 8:44
cromag14-Apr-03 8:44 
AnswerRe: SetPixel with GDI+ ? Pin
J. Dunlap14-Apr-03 10:32
J. Dunlap14-Apr-03 10:32 
GeneralAbout missing in system memu Pin
jimNLX14-Apr-03 8:44
jimNLX14-Apr-03 8:44 
Questionderived from two classes..how to? Pin
ns14-Apr-03 8:25
ns14-Apr-03 8:25 
AnswerRe: derived from two classes..how to? Pin
Dominik Reichl14-Apr-03 8:39
Dominik Reichl14-Apr-03 8:39 
GeneralThank you Pin
ns14-Apr-03 8:40
ns14-Apr-03 8:40 
GeneralCan't run compiler after install on Win2000 Pin
jimNLX14-Apr-03 8:24
jimNLX14-Apr-03 8:24 
GeneralRe: Can't run compiler after install on Win2000 Pin
Chris Richardson15-Apr-03 8:49
Chris Richardson15-Apr-03 8:49 
GeneralMacros in Visual Studio 7.0 Pin
Anonymous14-Apr-03 7:14
Anonymous14-Apr-03 7:14 
GeneralRe: Macros in Visual Studio 7.0 Pin
Gary Wheeler14-Apr-03 10:30
Gary Wheeler14-Apr-03 10:30 
GeneralRe: Macros in Visual Studio 7.0 Pin
billb211214-Apr-03 10:56
billb211214-Apr-03 10:56 
GeneralSlow CreateCompatibleBitmap() and BitBlt() Pin
Dean Michaud14-Apr-03 7:00
Dean Michaud14-Apr-03 7:00 
GeneralMultiple inheritance Pin
Gary Kirkham14-Apr-03 5:42
Gary Kirkham14-Apr-03 5:42 
GeneralRe: Multiple inheritance Pin
Navin14-Apr-03 5:50
Navin14-Apr-03 5:50 
GeneralRe: Multiple inheritance Pin
Gary Kirkham14-Apr-03 5:58
Gary Kirkham14-Apr-03 5:58 
GeneralRe: Multiple inheritance Pin
Maximilien14-Apr-03 6:03
Maximilien14-Apr-03 6:03 
GeneralRe: Multiple inheritance Pin
Gary Kirkham14-Apr-03 7:26
Gary Kirkham14-Apr-03 7:26 
GeneralRe: Multiple inheritance Pin
Tim Smith14-Apr-03 6:08
Tim Smith14-Apr-03 6:08 
B *b = static_cast <B *> (static_cast <C *> (this));

This assumes this is a pointer to A.

You do have to remember that in theory, this is very unsafe since it assumes that the member function is in fact being invoked from an instance of C. However, as long as that is the case, it works perfectly well.

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
GeneralRe: Multiple inheritance Pin
Maximilien14-Apr-03 6:28
Maximilien14-Apr-03 6:28 

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.