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?
Asked
Active
Viewed 2,475 times
2 Answers
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.

AnthonyWJones
- 187,081
- 35
- 232
- 306
0
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

Hannes de Jager
- 2,903
- 6
- 37
- 57
-
Why exactly did you not create a COM+ application instead? – sharptooth Mar 30 '09 at 10:50
-
I think I was unsure how to do this with the host process being a Java VM, also I have no control over the 32 bit COM server DLL, its a 3rd party library. – Hannes de Jager Apr 23 '09 at 08:36