Click here to Skip to main content
15,891,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: tapi Pin
Member 4764682-Apr-09 4:45
Member 4764682-Apr-09 4:45 
QuestionRe: tapi Pin
David Crow1-Apr-09 3:31
David Crow1-Apr-09 3:31 
AnswerRe: tapi Pin
Member 4764681-Apr-09 6:47
Member 4764681-Apr-09 6:47 
QuestionRe: tapi Pin
David Crow1-Apr-09 7:15
David Crow1-Apr-09 7:15 
QuestionMultiple Inheritance question Pin
ForNow31-Mar-09 6:41
ForNow31-Mar-09 6:41 
AnswerRe: Multiple Inheritance question Pin
Stuart Dootson31-Mar-09 7:10
professionalStuart Dootson31-Mar-09 7:10 
GeneralRe: Multiple Inheritance question Pin
ForNow31-Mar-09 16:24
ForNow31-Mar-09 16:24 
GeneralRe: Multiple Inheritance question Pin
Stuart Dootson31-Mar-09 20:23
professionalStuart Dootson31-Mar-09 20:23 
ForNow wrote:
from my undertanding static_cast<a*> is just a cast


Not in the presence of multiple inheritance - with multiple inheritance, you have two bases whose members you have to contain in your object. That means that for (say) class C : public class A, public class B, you have this layout in memory:

+---------------+
|   A members   |
+---------------+
|   B members   |
+---------------+
|   C members   |
+---------------+


So, to cast a C* to a B*, you will have an offset, equal to the size of A's members.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Multiple Inheritance question code worked Pin
ForNow31-Mar-09 18:11
ForNow31-Mar-09 18:11 
AnswerRe: Multiple Inheritance question Pin
Joe Woodbury31-Mar-09 8:11
professionalJoe Woodbury31-Mar-09 8:11 
GeneralRe: Multiple Inheritance question Pin
Stuart Dootson31-Mar-09 12:22
professionalStuart Dootson31-Mar-09 12:22 
GeneralRe: Multiple Inheritance question Pin
ForNow31-Mar-09 15:32
ForNow31-Mar-09 15:32 
AnswerRe: Multiple Inheritance question Pin
Cedric Moonen31-Mar-09 20:19
Cedric Moonen31-Mar-09 20:19 
GeneralRe: Multiple Inheritance question Pin
ForNow1-Apr-09 2:42
ForNow1-Apr-09 2:42 
AnswerRe: Multiple Inheritance question Pin
Stuart Dootson31-Mar-09 21:44
professionalStuart Dootson31-Mar-09 21:44 
GeneralRe: Multiple Inheritance question Pin
ForNow1-Apr-09 16:05
ForNow1-Apr-09 16:05 
GeneralRe: Multiple Inheritance question [modified] Pin
Stuart Dootson1-Apr-09 21:26
professionalStuart Dootson1-Apr-09 21:26 
GeneralRe: Multiple Inheritance question Pin
ForNow2-Apr-09 2:48
ForNow2-Apr-09 2:48 
QuestionVc++6.0. ADO. When I link in RELEASE mode I get Unresolved External error on ADO. Pin
Antonio292931-Mar-09 5:32
Antonio292931-Mar-09 5:32 
AnswerRe: Vc++6.0. ADO. When I link in RELEASE mode I get Unresolved External error on ADO. Pin
David Crow31-Mar-09 5:43
David Crow31-Mar-09 5:43 
GeneralRe: Vc++6.0. ADO. When I link in RELEASE mode I get Unresolved External error on ADO. Pin
Antonio292931-Mar-09 6:12
Antonio292931-Mar-09 6:12 
GeneralRe: Vc++6.0. ADO. When I link in RELEASE mode I get Unresolved External error on ADO. Pin
Stuart Dootson31-Mar-09 7:12
professionalStuart Dootson31-Mar-09 7:12 
Questionhow to set breakpoint in this way? Pin
George_George31-Mar-09 5:27
George_George31-Mar-09 5:27 
QuestionRe: how to set breakpoint in this way? Pin
David Crow31-Mar-09 5:28
David Crow31-Mar-09 5:28 
AnswerRe: how to set breakpoint in this way? Pin
Stuart Dootson31-Mar-09 7:17
professionalStuart Dootson31-Mar-09 7:17 

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.