开发者

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

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜