Click here to Skip to main content
16,006,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxMessageBox Pin
Mark Salsbery4-Apr-08 7:34
Mark Salsbery4-Apr-08 7:34 
GeneralRe: AfxMessageBox Pin
CPallini4-Apr-08 2:01
mveCPallini4-Apr-08 2:01 
GeneralRe: AfxMessageBox Pin
Nitheesh George4-Apr-08 2:01
Nitheesh George4-Apr-08 2:01 
GeneralThanks a lot people.. was very very helpful Pin
Priya_Sundar4-Apr-08 2:30
Priya_Sundar4-Apr-08 2:30 
QuestionCan i use dll buil in .Net 2005 in Smart device project i.e. Win CE? Pin
tony_Udz4-Apr-08 0:42
tony_Udz4-Apr-08 0:42 
AnswerRe: Can i use dll buil in .Net 2005 in Smart device project i.e. Win CE? Pin
Rajesh R Subramanian4-Apr-08 0:56
professionalRajesh R Subramanian4-Apr-08 0:56 
GeneralRe: Can i use dll buil in .Net 2005 in Smart device project i.e. Win CE? Pin
Cedric Moonen4-Apr-08 0:58
Cedric Moonen4-Apr-08 0:58 
GeneralCComVariant Pin
George_George4-Apr-08 0:31
George_George4-Apr-08 0:31 
Hello everyone,


In the book ATL Internals, here is the description for CComVariant. My questions,

--------------------
COM permits an object to hand out different binary values each time a client queries it for a specific interface pointer (with the exception of a query for the IUnknown interface). Therefore, two VARIANTs containing IDispatch pointers referencing the same object might not compare for equality.
--------------------

1.

I think it means even if the pointer binary values are different, they may still be pointed to the same object? Right?

I think it happens only in the situation of multiple inheritance, and in single inheritance, there is no such issue. Right?

2.

I think the above statement describes the following scenario, in multiple inheritance, suppose we have interface A inherits from IDispose, and interface B inherits from IDispose, and have inteface C inherits from both A and B.

The queryInterface for A and B from interface C will return different result.


thanks in advance,
George
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 1:56
Matthew Faithfull4-Apr-08 1:56 
GeneralRe: CComVariant Pin
George_George4-Apr-08 2:17
George_George4-Apr-08 2:17 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 2:32
Matthew Faithfull4-Apr-08 2:32 
GeneralRe: CComVariant Pin
George_George4-Apr-08 2:54
George_George4-Apr-08 2:54 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 3:09
Matthew Faithfull4-Apr-08 3:09 
GeneralRe: CComVariant Pin
George_George4-Apr-08 3:16
George_George4-Apr-08 3:16 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 3:23
Matthew Faithfull4-Apr-08 3:23 
GeneralRe: CComVariant Pin
George_George4-Apr-08 3:37
George_George4-Apr-08 3:37 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 3:55
Matthew Faithfull4-Apr-08 3:55 
GeneralRe: CComVariant Pin
George_George4-Apr-08 4:12
George_George4-Apr-08 4:12 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 4:28
Matthew Faithfull4-Apr-08 4:28 
GeneralRe: CComVariant Pin
George_George4-Apr-08 4:39
George_George4-Apr-08 4:39 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 4:53
Matthew Faithfull4-Apr-08 4:53 
GeneralRe: CComVariant Pin
George_George6-Apr-08 15:50
George_George6-Apr-08 15:50 
GeneralImageList of TreeView. Pin
Le@rner4-Apr-08 0:24
Le@rner4-Apr-08 0:24 
GeneralRe: ImageList of TreeView. Pin
Iain Clarke, Warrior Programmer4-Apr-08 1:10
Iain Clarke, Warrior Programmer4-Apr-08 1:10 
GeneralRe: ImageList of TreeView. Pin
Le@rner4-Apr-08 1:55
Le@rner4-Apr-08 1:55 

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.