Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Joe Woodbury wrote:
The "this" pointer should rarely be used in an initializer list.


It all depends whether he actually uses what the this pointer points at in the constructor or just stores it for later use. Storing for later use? Yeah, you'll be OK.

Joe Woodbury wrote:
...the virtual table hasn't been set up at this point.


The vtable will be consistent with the definition of the base class in the base class constructor (see this Scott Meyers article[^] for confirmation).

However, you do need to be very careful and aware of what's happening...which is why I probably shouldn't have said the OP would be OK with using this.

Joe Woodbury wrote:
I also think your class is a mistake and misunderstands CSyncObject() and CSingleLock(). The point is that there is one synchronization object with multiple threads locking that object. That locking is done by instantiated CSingleLock() at the start of a scope and upon exit of that scope, CSingleLock will be destructed regardless regardless of how the scope was exited.


Yeah, I wasn't even looking that far Blush | :O

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

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 
QuestionWM_NCCALCSIZE bug with Vista Desktop Composition Pin
sanguino.jose31-Mar-09 5:06
sanguino.jose31-Mar-09 5:06 
Questionurl filtering Pin
aks.31-Mar-09 4:58
aks.31-Mar-09 4:58 
QuestionAny Suggetions for an efficient way? Pin
FISH78631-Mar-09 4:57
FISH78631-Mar-09 4:57 

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.