Matt F
2003-10-13 10:42:21 UTC
Hi all
I am using a VB6 COM object from a VB.Net web app. The VB6 class I am
accessing contains a number of public enums. The class Instancing
property is set to GlobalMultiUse and, in the original VB6 app, the
enums were called from other classes without the need for instantiation.
I have found that in order to access the class from VB.Net I have to
instantiate it, as the GlobalMultiUse setting doesn't translate. That
is fine but, even when I have an instance of the class, I still can't
access the enums. When I look at the VB6 class in the .Net Object
Browser, the enums don't appear.
I have read that public enums go into the type library in COM, but are
not considered members of the class. Does anyone know of any way to
access these enums?
Thanks in advance for any help anyone can give me.
Matt
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I am using a VB6 COM object from a VB.Net web app. The VB6 class I am
accessing contains a number of public enums. The class Instancing
property is set to GlobalMultiUse and, in the original VB6 app, the
enums were called from other classes without the need for instantiation.
I have found that in order to access the class from VB.Net I have to
instantiate it, as the GlobalMultiUse setting doesn't translate. That
is fine but, even when I have an instance of the class, I still can't
access the enums. When I look at the VB6 class in the .Net Object
Browser, the enums don't appear.
I have read that public enums go into the type library in COM, but are
not considered members of the class. Does anyone know of any way to
access these enums?
Thanks in advance for any help anyone can give me.
Matt
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!