I am trying to load a C++ DLL inside my Ruby application as a binary object.
I have registered the Interface using regsrv32
and load the Dll using Win32OLE
.. but if i am running a 64 bit variant of Ruby I cannot load a 32 bit C++ dll and visa versa. the only combinations that works are
32 bit ruby loads a 32 bit C++ Dll. 64 bit ruby loads a 64 bit C++ Dll
The only possible way I see here is to fork out a 32 bit ruby process to register and load the 32 bit dll via Win32OLE
.