Exposing an enum without a typelib
My COM server is a VB.NET exe. I can call methods on its objects fine, but can't use enums unless I make a type library and tell the client (typically Excel VBA) about it .
Is it possible? And why are enums more special than classes/functions/etc? Here's my enum definition:
Code:
<Microsoft.VisualBasic.ComClass()> <Runtime.InteropServices.ComVisible(True)> Public Class MyClassName
<Runtime.InteropServices.ComVisible(True)> Public Enum MyEnumName
Something = 1
SomethingElse = 2
...