4

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 also 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?

Community
  • 1
  • 1
Giora Ron Genender
  • 797
  • 1
  • 11
  • 21

1 Answers1

7

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.

Ben Voigt
  • 277,958
  • 43
  • 419
  • 720