What is the easiest way to use a custom DLL from within Ruby ?
In Python I would use ctypes, just as described as in this example. But now how should I do it in Ruby, preferably using native functionalities over third party libs ? Is there any way Ruby can be as simple as Python for manipulating a DLL ?
Thank you o/
Try Ruby’s
FFImodule.Two examples to get you started:
Calling a C function from a DLL that returns a pointer to a string
Calling a Win32 function from within Ruby
The older
DLmodule seems to be less used and not as easy.