9
Answers

Preventing COM Name Mangling

Jon H

Jon H

13y
2.9k
1
Hi,

I am trying to write a replacement for a VB6 dll that is referenced by another VB6 in c# .net.

For now we can only work on the later and I am having some success with this. Except I have run into a problem.

My Enums are being mangling resulting it being called 'A1BACSTrans_BACSAU' instead of the expect 'BACSAU'

the legacy code will (obviously) no longer compile.

Can this be prevented? if so, how? I have heard of modifying the IDL but I can see no references in their to a mangled name only unmangled...

Thank you in advance!
Answers (9)