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.
>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 Sjgren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup.