64 bit C# with a 32 bit VB6 COM object

There’s no direct way you can do this.

Since you can’t port the VB6 inproc dll I’d suggest you write a 32bit out of process server that implements the same interfaces and have it delegate down to the VB6 code. Then, your 64bit app can call the out of process server as COM will take care of marshaling the types between the processes.

It ain’t pretty, bit it will work!

Leave a Comment