Click here to Skip to main content
15,894,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondual interface Pin
George_George11-Sep-08 16:25
George_George11-Sep-08 16:25 
AnswerRe: dual interface Pin
Steve Echols11-Sep-08 19:59
Steve Echols11-Sep-08 19:59 
GeneralRe: dual interface Pin
George_George11-Sep-08 20:21
George_George11-Sep-08 20:21 
GeneralRe: dual interface Pin
SandipG 11-Sep-08 20:28
SandipG 11-Sep-08 20:28 
GeneralRe: dual interface Pin
George_George11-Sep-08 20:34
George_George11-Sep-08 20:34 
GeneralRe: dual interface Pin
SandipG 11-Sep-08 20:38
SandipG 11-Sep-08 20:38 
GeneralRe: dual interface Pin
George_George11-Sep-08 20:50
George_George11-Sep-08 20:50 
GeneralRe: dual interface Pin
CPallini11-Sep-08 21:54
mveCPallini11-Sep-08 21:54 
George_George wrote:
1.

I am still confused. Dual interface means two ways to invoke methods of my class. One of them is through IDispatch.Invoke, the other way is?

Via another interface's VTABLE.


George_George wrote:
2.

Confused about what do you mean -- "Implement the vtable part of the interface in your class."


Suppose you have (only) a method (say Add) you can use via IDispatch::Invoke. Implement the VTABLE part of the interface means: provide an interface, say IOperation exposing the Add method (since such method is not directly exposed by IDispatch).
Possibly the final COM component interface inherits both from IDispatch and IOperation, as Sandip I don't remember the technical details and, as usual: "this in going on my arrogant assumptions..."
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: dual interface Pin
George_George11-Sep-08 21:58
George_George11-Sep-08 21:58 
GeneralRe: dual interface Pin
CPallini11-Sep-08 22:11
mveCPallini11-Sep-08 22:11 
GeneralRe: dual interface Pin
George_George11-Sep-08 23:02
George_George11-Sep-08 23:02 
GeneralRe: dual interface Pin
Swathee11-Sep-08 22:44
Swathee11-Sep-08 22:44 
GeneralRe: dual interface Pin
George_George11-Sep-08 23:09
George_George11-Sep-08 23:09 
GeneralRe: dual interface [modified] Pin
SandipG 11-Sep-08 22:13
SandipG 11-Sep-08 22:13 
GeneralRe: dual interface Pin
CPallini11-Sep-08 22:33
mveCPallini11-Sep-08 22:33 
GeneralRe: dual interface Pin
George_George11-Sep-08 22:56
George_George11-Sep-08 22:56 
GeneralRe: dual interface Pin
CPallini11-Sep-08 23:05
mveCPallini11-Sep-08 23:05 
GeneralRe: dual interface Pin
SandipG 11-Sep-08 23:12
SandipG 11-Sep-08 23:12 
GeneralRe: dual interface Pin
George_George11-Sep-08 23:14
George_George11-Sep-08 23:14 
GeneralRe: dual interface Pin
CPallini11-Sep-08 23:32
mveCPallini11-Sep-08 23:32 
GeneralRe: dual interface Pin
George_George11-Sep-08 23:13
George_George11-Sep-08 23:13 
GeneralRe: dual interface Pin
CPallini11-Sep-08 23:45
mveCPallini11-Sep-08 23:45 
GeneralRe: dual interface Pin
George_George11-Sep-08 23:48
George_George11-Sep-08 23:48 
GeneralRe: dual interface Pin
CPallini12-Sep-08 0:44
mveCPallini12-Sep-08 0:44 
GeneralRe: dual interface Pin
George_George12-Sep-08 19:48
George_George12-Sep-08 19:48 

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.