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
Printable View
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
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)
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