Click here to Skip to main content
16,010,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dual interface Pin
George_George24-Sep-08 0:46
George_George24-Sep-08 0:46 
GeneralRe: dual interface Pin
Scott Holt25-Sep-08 0:13
Scott Holt25-Sep-08 0:13 
GeneralRe: dual interface Pin
George_George27-Sep-08 0:16
George_George27-Sep-08 0:16 
GeneralRe: dual interface Pin
George_George11-Sep-08 23:50
George_George11-Sep-08 23:50 
GeneralRe: dual interface Pin
CPallini12-Sep-08 0:56
mveCPallini12-Sep-08 0:56 
GeneralRe: dual interface Pin
George_George12-Sep-08 19:49
George_George12-Sep-08 19:49 
GeneralRe: dual interface Pin
George_George12-Sep-08 19:58
George_George12-Sep-08 19:58 
GeneralRe: dual interface Pin
CPallini12-Sep-08 21:44
mveCPallini12-Sep-08 21:44 
George_George wrote:
Just through of another question, to implement dual interface is easy, i.e. making the component implement a customized interface, and making the customized interface inherits IDispatch. So, I think since it is easy

Most of COM components implement dual interface.

George_George wrote:
So, I think since it is easy, every COM component should implement it and be a dual interface.

(1) Is not that easy if you're doing it hand-crafting (without the help of a wizard or a framework such MFC or ATL)
(2) Keeping COM requirements minimal is (IMHO) a good design approach.


George_George wrote:
i.e. for some other reasons, developer will not implement dual interface?

Because, for instance, all the clients (of the COM server they're building) are written in VTABLE
binding language (like C++ or VB6 clients). AS you know VTABLE binding
is more efficient than IDispatch mechanism.
Final note: if you don't need a feature, why doing efforts to implement it?
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_George14-Sep-08 0:10
George_George14-Sep-08 0:10 
GeneralRe: dual interface Pin
CPallini12-Sep-08 21:53
mveCPallini12-Sep-08 21:53 
GeneralRe: dual interface Pin
George_George14-Sep-08 0:12
George_George14-Sep-08 0:12 
GeneralRe: dual interface Pin
CPallini14-Sep-08 0:34
mveCPallini14-Sep-08 0:34 
GeneralRe: dual interface Pin
George_George14-Sep-08 2:00
George_George14-Sep-08 2:00 
GeneralRe: dual interface Pin
CPallini14-Sep-08 2:27
mveCPallini14-Sep-08 2:27 
GeneralRe: dual interface Pin
George_George14-Sep-08 2:41
George_George14-Sep-08 2:41 
GeneralRe: dual interface Pin
CPallini14-Sep-08 3:15
mveCPallini14-Sep-08 3:15 
GeneralRe: dual interface Pin
George_George15-Sep-08 4:09
George_George15-Sep-08 4:09 
GeneralRe: dual interface Pin
CPallini15-Sep-08 4:38
mveCPallini15-Sep-08 4:38 
GeneralRe: dual interface Pin
George_George15-Sep-08 4:43
George_George15-Sep-08 4:43 
GeneralRe: dual interface Pin
CPallini15-Sep-08 4:48
mveCPallini15-Sep-08 4:48 
GeneralRe: dual interface Pin
George_George15-Sep-08 17:10
George_George15-Sep-08 17:10 
GeneralRe: dual interface Pin
CPallini15-Sep-08 21:38
mveCPallini15-Sep-08 21:38 
GeneralRe: dual interface Pin
George_George15-Sep-08 22:11
George_George15-Sep-08 22:11 
GeneralRe: dual interface Pin
George_George11-Sep-08 22:55
George_George11-Sep-08 22:55 
GeneralRe: dual interface Pin
led mike12-Sep-08 4:33
led mike12-Sep-08 4:33 

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.