VB6: How to create a DLL and use it in C #?

Possible duplicate:
Using VB6 class in C #

I have egnine serialization written in VB6 that does binary serialization in some mysterious way, I did not understand. I also have a C # program that should serialize in the same way as VB6 code.

Therefore, I wanted to make VB6 serialization code in a DLL and use it in a C # program so that binary serialization matches. How can i do this?

+4
source share
1 answer

VB6 classes are COM objects, and C # can use them through COM-interop.

Define a VB project to build the COM server in the process, and then add it to the C # project as a COM reference.

+7
source

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


All Articles