Subject:
Re: [ruby-ffi] lists only one lib?
From:
Luis Lavena
Date:
12/18/09 12:28 PM
To:
ruby-ffi@googlegroups.com

On Fri, Dec 18, 2009 at 3:11 PM, rogerdpack <rogerpack2005@gmail.com> wrote:
> 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]?
>

Can you report this as a bug/feature request?

Also, please provide a working code, we discussed earlier than there
is no FindWindow function, only FindWindowA or FindWindowW.
-- 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