Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 143
  • Last Modified:

Getting different interfaces from COM control

Hi,

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!

Thanks,

Curtis
0
cknelson
Asked:
cknelson
  • 2
2 Solutions
 
Richie_SimonettiIT OperationsCommented:
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!
0
 
antidemonCommented:
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

y.method

etc
0
 
Richie_SimonettiIT OperationsCommented:
I think antidemon understood what i meant.
:D
0
 
CleanupPingCommented:
cknelson:
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?
0

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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now