I’m writing an add-in for an application which runs in 64 bit, however I need to use objects from a 32 bit library (this library only comes in 32 bit). Is there any way I can accomplish this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is quite easy in .NET. You just need all modules in a process to be the same bit-width.
So you simply start a child 32bit process, put all 32bit DLLs there, and use remoting features of .net to call procedures in it. Or as used to say in COM-times: Use out-of-process component server.
It will get more complicated when you need to pass a lot of data between 32bit and 64bit modules. You can setup memory-sharing, but it requires more work than normal.