VB6: How to create a DLL and use it in C#? [duplicate]
Possible Duplicate:
Using a VB6 Class in C#
I have a serialization egnine written in VB6, which makes binary serialization in some mysterious way I didn't get to figure out. I al开发者_运维问答so have a C# program that needs to make serialization the same way the VB6 code does.
So I wanted to make the VB6 serialization code in DLL and use it in the C# program so that the binary serialization would fit. How can I do that?
VB6 classes are COM objects, and C# can use them via COM-interop.
Set your VB project to build an in-process COM server, then add it to the C# project as a COM reference.
精彩评论