For my job I need to use a 32 bit c++ dll with a 64bit c# program. I wanted to try doing this using dlls as wrappers.
What I have done for the moment is I made a dll that uses dll import to expose the function of the c++ dll and then make it COM+ enabled to make these functions available in 64 bit.
The problem I am facing is using this COM+ dll. To do it I followed this documentation
I signed it with a strong name, compiled it, registered it using gacutil and then sent it to com+ with Regsvcs. But when I want to use it I need to have a reference about it in my 64 bit app.
I tried to do add reference, select COM and then my class and it tells me that:
the ActiveX type library was exported from a .net assembly and cannot be registered.
If I try to add the tlb file it tells me:
check that the file is accessible and this is an assembly or a valid COM component
If I had the dll as reference, I get a badImageException. My computer is not in English so the messages might not be accurate.