Click to See Complete Forum and Search --> : Using existing interface in VB


P K Tonder
January 21st, 2000, 04:28 AM
I want to use VB to create a component. This component needs to expose a predefined interface described in a IDL-file with a set IID. Does anybody know if this is possible, and in case how it is done?

Thanks in advance
Pål

Lothar Haensler
January 21st, 2000, 06:19 AM
I'd try to create a typelib from your ODL file using MKTypeLib utility, add that to the references of your project and then use VB's Implements feature.
(haven't done that before, though)

klavergne
January 21st, 2000, 09:53 AM
For info on Implements, go to msdn.microsoft.com and check out the library. They have a book printed there called Hardcore Visual Basic. It has a very good explanation of how to use the Implements feature.

Kevin