Subject: Re: [ruby-ffi] Re: unable to find method? |
From: Luis Lavena |
Date: 12/19/09 8:08 AM |
To: ruby-ffi@googlegroups.com |
On Sat, Dec 19, 2009 at 9:34 AM, Wayne Meissner <wmeissner@gmail.com> wrote:
Is MessageBoxA a WINAPI function? That might need: ffi_convention :stdcall before the attach_function call
Confirmed, it works. What I like of FFI is that, even on Windows, you're not stuck to stdcall but you can also work with DLL that uses cdecl :-)-- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry