Ruby 1.6.8 win32ole.so File?

G

gregarican

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!
 
D

daz

gregarican said:
[...] 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
 
G

gregarican

daz said:
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")
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top