[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Accessing enumerators in C# DLL from VB6

kalich

8/8/2007 4:22:00 PM


Hello.
I have a problem. I have to access enumerators of the enum that is
located in DLL written in C#. Currently I can do that from VB6 only by
using underscore, like EnumName_enumeratorOne... but I need to do that
the way it was done before (before I translated that DLL from VB6 to C#
that is) which was with a dot, like EnumName.enumeratorOne...

What am I doing wrong? Is there a way to access enumerators with a dot
at all (I know there should be)?
Thanks.
3 Answers

(Mattias Sjögren)

8/8/2007 10:16:00 PM

0


>What am I doing wrong? Is there a way to access enumerators with a dot
>at all (I know there should be)?

You're not doing anything wrong, but that's the way (with an
underscore) enums are exported from managed code. If you don't like it
you have to create your own type library instead (or edit the one you
have, or use the old VB6 typelib if they are compatible).


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.n... | http://www.dotneti...
Please reply only to the newsgroup.

pmfan57

6/9/2010 2:35:00 PM

0

On Jun 9, 4:40 am, mylesgtr <myles...@gmail.com> wrote:
> On Jun 9, 2:25 am, Joe Giglio <joegig...@gmail.com> wrote:
>
> > just got back from hearing Myles @ Smoke - man the dude played his ass
> > off!
> > no worries about NYC Myles - you got it covered!
> > & he's a real nice person...
> > congratulations my friend-many more 'smokin'' gigs!
> > JoeG
>
> thanks so much for making it out, joe.  that was such a fun night.
> oh...and that george coleman guy was really good!  :)
>
> i'll shoot you an email shortly.
>
> myles

Fantastic. Did George Coleman play with your group?

zepa

6/9/2010 4:41:00 PM

0

On Jun 9, 5:40 am, mylesgtr <myles...@gmail.com> wrote:
> On Jun 9, 2:25 am, Joe Giglio <joegig...@gmail.com> wrote:
>
> > just got back from hearing Myles @ Smoke - man the dude played his ass
> > off!
> > no worries about NYC Myles - you got it covered!
> > & he's a real nice person...
> > congratulations my friend-many more 'smokin'' gigs!
> > JoeG
>
> thanks so much for making it out, joe.  that was such a fun night.
> oh...and that george coleman guy was really good!  :)
>
> i'll shoot you an email shortly.
>
> myles

Yeah, man ! That's really great to hear. I always knew that this was
gonna happen.
Hey Myles, please, give us more details.
You really deserve it, bro.

ZP