Subject: Re: [ruby-ffi] lists only one lib? |
From: Wayne Meissner |
Date: 12/19/09 6:35 AM |
To: ruby-ffi@googlegroups.com |
You need to list them all on the same line. i.e. ffi_lib 'user32', 'msvcrt' 2009/12/19 rogerdpack <rogerpack2005@gmail.com>:
For my curiosity... Currently with this snippet: ffi_lib 'user32' ffi_lib 'msvcrt' attach_function 'FindWindow', [ :string, :string], :pointer I get this response #<FFI::NotFoundError: Function 'FindWindow' not found in [msvcrt]> Function 'FindWindow' not found in [msvcrt] Is it expected for that to be [msvcrt] and not [msvcrt, user32]? Also would it be conceivably possible to have a verbose mode that outputs.. #<FFI::NotFoundError: Function 'FindWindow' not found in [msvcrt]> Function 'FindWindow' not found in [msvcrt] possible options are: [FindWindowA, FindWindowExA, FindWindowW, AlignRects...] Just wondering. Thanks. -r