Enum items getting unwanted prefix

M

MLM450

I am converting a C++ control to C#. When a C++ host app is compiled
with the tlb file of my new control, it changes my public enums. Each
item in the enumerator list has the enum name added as a prefix. For
example:

My C# code has this...
public enum SIZE_OPTIONS
{
szZoom = -1,
szFitWindow,
szFitWidth,
szFitHeight,
szActual
}

TLH has this...
SIZE_OPTIONS
{
SIZE_OPTIONS_szZoom = -1,
SIZE_OPTIONS_szFitWindow = 0,
SIZE_OPTIONS_szFitWidth = 1,
SIZE_OPTIONS_szFitHeight = 2,
SIZE_OPTIONS_szActual = 3
};

Does anyone know how to turn this off - hopefully on the C# side.

Thanks,
Mike
 

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

Similar Threads

Interface and enum 3
TLBEXP enum export & name mangling 2
Arrays of List collections 4
Databound Enum? 1
Enum bug? 6
How to extend an enum 3
Can I cast to a [Flags] enum? 1
Getting enum value through enum type 7

Top