DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 8 Aug 2007 09:22:03 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    kalich
          2    Mattias Sjgren


Accessing enumerators in C# DLL from VB6   
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.
Date:Wed, 8 Aug 2007 09:22:03 -0700   Author:  

Re: Accessing enumerators in C# DLL from VB6   

>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.
Date:Thu, 09 Aug 2007 00:16:10 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us