>How can I expose VB.NET modules (shared classes) through a COM callable
>wrapper?
You can't, since Module members are implicitly Shared, and Shared
members are never exposed to COM.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Perecli Manole - 27 Aug 2003 07:21 GMT
This is not true. As a test I just created a COM ActiveX DLL in VB6 and was
able to expose a public module with shared methods and properties. How can I
emulate this behavior through a COM callable wrapper?
Perry
> >How can I expose VB.NET modules (shared classes) through a COM callable
> >wrapper?
[quoted text clipped - 3 lines]
>
> Mattias
Mattias Sj?gren - 27 Aug 2003 12:00 GMT
>This is not true.
Yes it is.
>As a test I just created a COM ActiveX DLL in VB6 and was
>able to expose a public module with shared methods and properties.
VB6 didn't have the concept of Shared members (and no Shared keyword).
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.