Solved

Multiple IDispatch interfaces

Posted on 1997-07-31
5
293 Views
Last Modified: 2013-11-20
Is it okay to create an ActiveX component which implements multiple interfaces derived from IDispatch.
If such a component is created can it be used in a Visual Basic application
0
Comment
Question by:santoshu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
faster earned 0 total points
ID: 1302964
You can, however, what pointer are you going to return when there is a request for IDispatch?  VB will not know there are other interfaces in your control.  Of course, through vtable binding, it is still possible.
0
 

Author Comment

by:santoshu
ID: 1302965
<<Of course, through vtable binding, it is still possible. >>

Is it possible to use from VB or just from a C++ container ?
0
 
LVL 7

Expert Comment

by:faster
ID: 1302966
From VB, Yes.  From container, I am not sure, probably can.  But I don't think it is a good idea to do it in this way.  You can implement several controls and combine them in one ocx (dll) file.
0
 

Author Comment

by:santoshu
ID: 1302967
I though VB is an interpreted environment and would not be able to make calls to functions present in  the Vtable. For making OLE calls it would get the IDispatch interface and make the calls with the proper dispid. I don't know how it can resolve a function call to a method which has same name in two interfaces derived from IDispatch.

Can any one please shed more light on this.

Thanks

Santosh
0
 

Author Comment

by:santoshu
ID: 1302968
I thought VB is an interpreted environment and would not be able to make calls to functions present in  the Vtable. For making OLE calls it would get the IDispatch interface and make the calls with the proper dispid. I don't know how it can resolve a function call to a method which has same name in two interfaces derived from IDispatch.

Can any one please shed more light on this.

Thanks

Santosh
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question