Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dual interface for IDispatch Pin
CPallini15-Feb-08 3:10
mveCPallini15-Feb-08 3:10 
GeneralRe: dual interface for IDispatch Pin
George_George15-Feb-08 3:41
George_George15-Feb-08 3:41 
GeneralRe: dual interface for IDispatch Pin
CPallini15-Feb-08 4:01
mveCPallini15-Feb-08 4:01 
GeneralRe: dual interface for IDispatch Pin
George_George16-Feb-08 22:33
George_George16-Feb-08 22:33 
GeneralRe: dual interface for IDispatch Pin
CPallini16-Feb-08 23:04
mveCPallini16-Feb-08 23:04 
GeneralRe: dual interface for IDispatch Pin
George_George16-Feb-08 23:32
George_George16-Feb-08 23:32 
GeneralRe: dual interface for IDispatch Pin
Rajkumar R15-Feb-08 0:14
Rajkumar R15-Feb-08 0:14 
GeneralRe: dual interface for IDispatch Pin
George_George15-Feb-08 0:28
George_George15-Feb-08 0:28 
Yes Rajkumar,


Rajkumar R wrote:
I think ur confusion is once derived from IDispatch in C++, u have access through vtbl (atleast of IDispatch) and also through Invoke(), dual implicit and why u need dual keyword. Is it?


Sometimes I notice that the component actually implements the dual interface, but in the IDL file, "dual" property is not added to the interface property.

1. Is it good practice?

2. What is the purpose of doing so? Force user to use IDispatch other than efficient vtable?

3. Could we use vtable even if dual property is not added to interface? For example, using QueryInterface to get come component interface (other than IDispatch and IUnknown)? If we could, then it is a dual interface activity -- invoking through vtable.


regards,
George
GeneralRe: dual interface for IDispatch Pin
Rajkumar R15-Feb-08 4:43
Rajkumar R15-Feb-08 4:43 
GeneralRe: dual interface for IDispatch Pin
George_George16-Feb-08 22:36
George_George16-Feb-08 22:36 
GeneralRe: dual interface for IDispatch Pin
Rajkumar R17-Feb-08 0:09
Rajkumar R17-Feb-08 0:09 
GeneralRe: dual interface for IDispatch Pin
George_George17-Feb-08 0:23
George_George17-Feb-08 0:23 
QuestionFile Comparison in VC++6.0 Pin
seshi_hari14-Feb-08 21:36
seshi_hari14-Feb-08 21:36 
GeneralRe: File Comparison in VC++6.0 Pin
Cedric Moonen14-Feb-08 21:41
Cedric Moonen14-Feb-08 21:41 
GeneralRe: File Comparison in VC++6.0 Pin
Rajesh R Subramanian14-Feb-08 21:43
professionalRajesh R Subramanian14-Feb-08 21:43 
GeneralRe: File Comparison in VC++6.0 Pin
seshi_hari14-Feb-08 23:29
seshi_hari14-Feb-08 23:29 
GeneralRe: File Comparison in VC++6.0 Pin
Rajesh R Subramanian15-Feb-08 0:12
professionalRajesh R Subramanian15-Feb-08 0:12 
GeneralRe: File Comparison in VC++6.0 Pin
Nemanja Trifunovic15-Feb-08 3:54
Nemanja Trifunovic15-Feb-08 3:54 
Generalchecking for instance validity Pin
rp_suman14-Feb-08 21:26
rp_suman14-Feb-08 21:26 
GeneralRe: checking for instance validity Pin
Cedric Moonen14-Feb-08 21:29
Cedric Moonen14-Feb-08 21:29 
GeneralRe: checking for instance validity Pin
Prasanth M V14-Feb-08 23:08
Prasanth M V14-Feb-08 23:08 
GeneralRe: checking for instance validity Pin
Prasanth M V14-Feb-08 23:13
Prasanth M V14-Feb-08 23:13 
GeneralRe: checking for instance validity Pin
Maxwell Chen14-Feb-08 23:19
Maxwell Chen14-Feb-08 23:19 
JokeRe: checking for instance validity Pin
Rajesh R Subramanian14-Feb-08 23:48
professionalRajesh R Subramanian14-Feb-08 23:48 
GeneralRe: checking for instance validity Pin
Maxwell Chen14-Feb-08 23:51
Maxwell Chen14-Feb-08 23:51 

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.