Getting different interfaces from COM control

Posted on 2003-03-26
Medium Priority
Last Modified: 2010-05-01

I wrote a COM control in VC++ which has one coclass with several interfaces.  My question is, how do I get and work with those different interfaces?  I've never seen this covered in any of the books I've read, and I need to get it working!


Question by:cknelson
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
  • 2
LVL 16

Accepted Solution

Richie_Simonetti earned 152 total points
ID: 8211029
you should see them in Object browser, right?
Creating objects from those interfaces is not an option?
Who better than you to know how interfaces are implemented if you did the COM component!

Assisted Solution

antidemon earned 148 total points
ID: 8211671
Dim x as MyCoClass
Dim y as MyAlternativeInterface

Set x = New MyCoClass 'create the object
set y = x 'y now points to the other interface on x


LVL 16

Expert Comment

ID: 8211893
I think antidemon understood what i meant.

Expert Comment

ID: 8899869
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

801 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