require failes for win32/clipboard

Discussion in 'Ruby' started by Axel, Dec 28, 2007.

  1. Axel

    Axel Guest

    Hello, all!

    In Win32::Clipboard version 0.4.3 (installed via the OneClick
    intstaller 1.8.6-26), I get the following error:

    c:/ruby/lib/ruby/gems/1.8/gems/win32-clipboard-0.4.3/lib/win32/
    clipboard.rb:25: uninitialized constant Win32::Clipboard::Win32API
    (NameError)
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    32:in `gem_original_require'
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    32:in `require'
    from test_clipboard.rb:1

    Line 1 in test_clipboard.rb is just:
    require 'win32/clipboard'

    I get the same problem with the test script included with the
    Win32::Clipboard gem. Any ideas what's wrong here?
     
    Axel, Dec 28, 2007
    #1
    1. Advertising

  2. Axel

    Axel Guest

    I've found the solution myself: You have to require Win32API first.

    This does the trick:

    require 'Win32API'
    require 'win32/clipboard'
     
    Axel, Dec 28, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    9
    Views:
    485
    isamura
    Dec 9, 2005
  2. Nathaniel Wingard

    Ways fopen() Failes

    Nathaniel Wingard, Sep 16, 2003, in forum: C Programming
    Replies:
    2
    Views:
    361
    Mike Wahler
    Sep 16, 2003
  3. wes weston

    askstring => grab failes

    wes weston, Apr 26, 2004, in forum: Python
    Replies:
    1
    Views:
    456
    klappnase
    Apr 27, 2004
  4. Replies:
    2
    Views:
    773
  5. Howard
    Replies:
    1
    Views:
    463
    Bob Barrows [MVP]
    Jul 6, 2004
Loading...

Share This Page