Accessing C# Enum in vb6

G

Guest

Hi,
Did any one tried to access/called C# enum in vb6? Actually we are
migrating the few vb6 components to C#.net. Conversion process went fine. But
I could not able to access/see the exact Enum values in vb6 Like
C# Enum
==========
public enum test
{
Grade = 1
}
..Net regasm/tlbexp exporting the .net assembly to .tlb like
publie enum test
{
test_Grade =1
}
So, the question is .Net added/included the Enum name to values i.e "Test_".
If you came accross the same situation, How you managed to resolve the
issue?
Any Help would be greatly appreciated.

Note: Client is not going to change the existing vb6 applicaiton
Regards,
Sriman.
 
M

Mattias Sjögren

If you came accross the same situation, How you managed to resolve the

Most people just accept and live with it.

But since you have existing VB6 components, you should be able to use
the existing type libraries instead of the one produced by Tlbexp.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top