How do I use a 32 Bit COM object from a 64 bit process?

安稳与你 提交于 2019-12-19 10:57:06

问题


I Use Jacob (JAVA COM Bridge) on a 64 Bit Machine and want to load COM Objects from a 32 bit DLL. How can I do that?


回答1:


You will need to host the 32 bit COM object in a 32bit process. So either your entire app will have to run 32bit or youll need to place the COM object in something like COM+ and use cross process calls.




回答2:


I solved the problem as follows: Created a small 32 bit out-of-process COM server (.exe) that serves as a factory COM object to create the needed 32 bit objects. So now my app is running 64bit and using 32 bit COM objects.

My64bitApp<-->32BitOutOfProcFactory<-->32bitCOMServerDLL



来源:https://stackoverflow.com/questions/359807/how-do-i-use-a-32-bit-com-object-from-a-64-bit-process

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!