Prevent COM Name Command

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

So far we can only work at a later date, and I have some success. Also, I ran into a problem.

My listings become painful, as a result they are called "A1BACSTrans_BACSAU" instead of the expected "BACSAU"

legacy code (obviously) no longer compiles.

Can this be prevented? if so, how? I heard about the IDL change, but I do not see any links to their name with a distorted name that is just not connected ...

Thank you in advance!

+4
source share
1 answer
Guys, I discussed this with c-sharpcorner, and although I basically came up with a solution myself, I have a document there.

http://www.c-sharpcorner.com/Forums/Thread/111642/preventing-com-name-mangling.aspx

Basically changing the IDL is the way I found this.

I would like to know if there is a way to do this in the code, perhaps an attribute, but if there is a way, I don’t know!

+1
source

Source: https://habr.com/ru/post/1342858/


All Articles