Article ID: 259529 - Last Review: January 11, 2001 - Revision: 1.0 INFO: How Visual Basic Classes Map to COMThis article was previously published under Q259529 SUMMARY
Every Component Object Model (COM) object must implement at least one interface. Visual Basic simplifies this concept by creating a default interface that can be created automatically for each class. Visual Basic also hides the name of the default interface.
MORE INFORMATION
For a class module, Class1, Visual Basic creates a hidden interface named _Class1 as a default. When you use the OLEVIEW tool to look at the compiled Visual Basic components' type library, you can see that Visual Basic creates a CoClass named Class1, which implements _Class1 as the default interface. The Visual Basic components' type library looks like the following:
REFERENCESFor additional information regarding implementing a COM interface in Visual Basic, click the article number below
to view the article in the Microsoft Knowledge Base:
258827
(http://support.microsoft.com/kb/258827/EN-US/
)
Visual Basic Object Browser Cannot See the Default Interface
| Article Translations
|
Back to the top
