Click here to Skip to main content
15,912,578 members
Home / Discussions / COM
   

COM

 
QuestionImplementing sink interface in raw C++? Pin
Henrik Husted8-Dec-01 18:31
Henrik Husted8-Dec-01 18:31 
AnswerRe: Implementing sink interface in raw C++? Pin
Aaron Schaefer9-Dec-01 11:11
Aaron Schaefer9-Dec-01 11:11 
GeneralActiveX Pin
mazy4-Dec-01 2:57
mazy4-Dec-01 2:57 
GeneralDllSurrogate problems Pin
Avneesh Bhatnagar3-Dec-01 18:38
Avneesh Bhatnagar3-Dec-01 18:38 
GeneralRe: DllSurrogate problems Pin
Joao Morais5-Jan-02 0:36
Joao Morais5-Jan-02 0:36 
GeneralQueryInterface( ..., void** ppv) Pin
3-Dec-01 9:26
suss3-Dec-01 9:26 
GeneralRe: QueryInterface( ..., void** ppv) Pin
Bill Wilson3-Dec-01 10:45
Bill Wilson3-Dec-01 10:45 
GeneralRe: QueryInterface( ..., void** ppv) Pin
Shadi Al-Kahwaji9-Dec-01 22:41
Shadi Al-Kahwaji9-Dec-01 22:41 
Hi,

Let us start from the begining of the C/C++ language without COM. In the C/C++ language, whenever you have a class which contains at least ONE Virtual Function/Pure Function, a virtual table will be created at run time for this class which contains a list of the virtual functions in that class, and a Hidden pointer which called _vPtr is returned, this pointer points to the first entry in the virtual table.

Let us back to the COM world, QueryInterface is a method in the IUnknown interface, and IUknown interface is accessing the functionality of the component through virtual table.

The interface which returned from the QueryInterface is NOT poiting to the virtual table directly, it points to the hidden pointer _vPtr which points to the virtual table. For this reason we have pointer to pointer. Wink | ;)

Regards,
ShadiK.








Shadi Al-Kahwaji
GeneralAutomatisation question - need hint Pin
Harald Krause2-Dec-01 6:25
Harald Krause2-Dec-01 6:25 
GeneralRe: Automatisation question - need hint Pin
David Stranz3-Dec-01 6:53
David Stranz3-Dec-01 6:53 
Generalpassing connection points parameters by ref Pin
SPENNER1-Dec-01 8:38
SPENNER1-Dec-01 8:38 
GeneralRe: passing connection points parameters by ref Pin
Anders Molin1-Dec-01 10:56
professionalAnders Molin1-Dec-01 10:56 
GeneralRe: passing connection points parameters by ref Pin
SPENNER1-Dec-01 11:38
SPENNER1-Dec-01 11:38 
GeneralRe: passing connection points parameters by ref Pin
Anders Molin1-Dec-01 12:50
professionalAnders Molin1-Dec-01 12:50 
GeneralRe: passing connection points parameters by ref Pin
Michael P Butler2-Dec-01 1:54
Michael P Butler2-Dec-01 1:54 
GeneralRe: passing connection points parameters by ref Pin
SPENNER2-Dec-01 9:51
SPENNER2-Dec-01 9:51 
GeneralRe: passing connection points parameters by ref Pin
Anders Molin2-Dec-01 10:55
professionalAnders Molin2-Dec-01 10:55 
GeneralRe: passing connection points parameters by ref Pin
SPENNER4-Dec-01 7:56
SPENNER4-Dec-01 7:56 
GeneralRe: passing connection points parameters by ref Pin
Anders Molin4-Dec-01 8:11
professionalAnders Molin4-Dec-01 8:11 
GeneralUsing ActiveX Object inside ATL COM Object... Please Help Pin
Matt Philmon30-Nov-01 18:37
Matt Philmon30-Nov-01 18:37 
GeneralWinXP Pin
Gfw30-Nov-01 2:39
Gfw30-Nov-01 2:39 
QuestionHow to version an ActiveX dll? Pin
David Stranz29-Nov-01 13:19
David Stranz29-Nov-01 13:19 
GeneralActiveX & Threads...gettin' Funky - Check this Out. Pin
Tim Rymer28-Nov-01 11:29
Tim Rymer28-Nov-01 11:29 
GeneralRe: ActiveX & Threads...gettin' Funky - Check this Out. Pin
Anders Molin30-Nov-01 23:40
professionalAnders Molin30-Nov-01 23:40 
GeneralRe: ActiveX & Threads...gettin' Funky - Check this Out. Pin
Ali Issa6-Dec-01 3:34
Ali Issa6-Dec-01 3:34 

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.