Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
When you say a component implements IDispatch or IUnknown im assuming that you have an interface IX that is derived from either of those interfaces (IDispatch or IUnknown)and you are implementing those intrefaces in a coclass.

1. Any COM interface has to be derived from IUnknown. So when you implement IDispatch you also have to implement IUnknown, because IDispatch is also derived from IUnknown.

Any interface,say IX, that is derived from IDispatch is a dual interface. Because IX methods can be invoked through IDispatch methods as well as vtable.

2. You can also derive your interface IX from IUnknown and invoke its methods through vtable.

3,4. Don't know what you mean by customized interface.

May i suggest that you go through "Inside COM" by Dale Rogerson. It is a very good book it will help you in understanding COM much better.
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 
GeneralRe: dual interface Pin
Scott Holt12-Sep-08 14:38
Scott Holt12-Sep-08 14:38 
GeneralRe: dual interface Pin
George_George12-Sep-08 19:58
George_George12-Sep-08 19:58 
GeneralRe: dual interface Pin
Scott Holt13-Sep-08 1:25
Scott Holt13-Sep-08 1:25 
GeneralRe: dual interface Pin
George_George14-Sep-08 0:16
George_George14-Sep-08 0:16 

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.