all groups > vb.net upgrade > november 2007 >
You're in the

vb.net upgrade

group:

Enum Problem


Enum Problem Sriman
10/30/2007 3:12:04 PM
vb.net upgrade:
I want to call a dotnet Enum from VB6.
C# Enum:
public enum grpType
{
personalGroup = 1;
}
I am accessing the c# class/enum through .tlb in the vb6.
But the issue is the enum types. like in vb6 it is showing enum value like
grpType.grpType_personalGroup instead of grpType.personalGroup.
(.net appending the extra word(grpType_) to the enum types) .
Is there any way to avoid/remove the extra word(grpType_) at the time of
..tlb generation?



Any help would be greatly appreciated.

Regards,
Re: Enum Problem Mattias Sjögren
10/31/2007 12:00:00 AM
[quoted text, click to view]

No there isn't.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Re: Enum Problem Jan Hyde (VB MVP)
11/1/2007 1:10:26 PM
Sriman <Sriman@discussions.microsoft.com>'s wild thoughts
were released on Tue, 30 Oct 2007 15:12:04 -0700 bearing the
following fruit:

[quoted text, click to view]

Why is it a problem to you?
--
Jan Hyde

AddThis Social Bookmark Button