Ruby 1.6.8 win32ole.so File?

Discussion in 'Ruby' started by gregarican, Sep 9, 2005.

  1. gregarican

    gregarican Guest

    I have an old binary Ruby 1.6.8 running on my Windows 2000 development
    laptop. It doesn't have a C/C++ compiler environment on it. The only
    thing I need to complete this one project is a win32ole.so file that
    would be compatible with it. Can anyone please e-mail me the file if
    they have it on their Win32 machine? My setup has a mswin32-ruby16.dll
    file to give you an idea what I'm looking for in terms of the
    win32ole.so file. Many thanks!
     
    gregarican, Sep 9, 2005
    #1
    1. Advertising

  2. gregarican

    daz Guest

    gregarican wrote:
    > [...] The only thing I need to complete this one project is a win32ole.so file that
    > would be compatible with it. Can anyone please e-mail me the file if
    > they have it on their Win32 machine? My setup has a mswin32-ruby16.dll
    > file to give you an idea what I'm looking for in terms of the
    > win32ole.so file. Many thanks!
    >


    It's in here:

    ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ext/win32ole-0.5.2-i586-mswin32-1.6.zip


    daz
     
    daz, Sep 10, 2005
    #2
    1. Advertising

  3. gregarican

    gregarican Guest

    daz wrote:

    > It's in here:
    >
    > ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ext/win32ole-0.5.2-...
    >
    >
    > daz


    Thanks so much for pointing this out to me. Now my code should be a lot
    nicer. I can use:

    winword=WIN32OLE.new('Word.Application')
    winword.Documents.Open("#{@myWordDocument}")
    winword.visible = true

    As opposed to this:

    tempFolder=ENV['TEMP']
    launchFile=File.new("#{tempFolder}\\launchFile.bat", "w")
    word2k="c:\\program files\\microsoft office\\office\\winword.exe"
    wordXp="c:\\program files\\microsoft office\\office10\winword.exe"
    word2k3="c:\\program files\\microsoft office\\office11\winword.exe"
    wordExe=word2k if File.exist?(word2k)
    wordExe=wordXp if File.exist?(wordXp)
    wordExe=word2k3 if File.exist?(word2k3)
    launchFile.write("\"#{wordExe}\" \"#{@myWordDocument}\"\nexit\n")
    launchFile.close
    system("#{tempFolder}\\launchFile.bat")
     
    gregarican, Sep 10, 2005
    #3
    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. Greg Brondo

    win32ole, outlook, ruby 1.8

    Greg Brondo, Dec 22, 2003, in forum: Ruby
    Replies:
    5
    Views:
    378
    Greg Brondo
    Dec 23, 2003
  2. yonatan
    Replies:
    0
    Views:
    131
    yonatan
    Jan 6, 2004
  3. Curt Hibbs
    Replies:
    1
    Views:
    135
  4. Masaki Suketa
    Replies:
    4
    Views:
    409
    Dave Burt
    Mar 27, 2006
  5. zxem
    Replies:
    1
    Views:
    260
Loading...

Share This Page