From: Bruno Antunes Date: 2009-09-14T23:25:53+09:00 Subject: [ruby-core:25583] [Bug #2079] win32ole's OLEGEN does not create all classes needed when a TLB has more than one class defined Issue #2079 has been updated by Bruno Antunes. Here's the output: --------------------------------------------------------------------------------------------------------------------- test.rb:4:in `
': uninitialized constant VT_BYREF (NameError) --------------------------------------------------------------------------------------------------------------------- After changing it to: --------------------------------------------------------------------------------------------------------------------- require 'win32ole' include WIN32OLE::VARIANT server = WIN32OLE.new("Ccs.Application") server._invoke(3, [nil], [VT_BYREF|VT_VARIANT]) p WIN32OLE::ARGV --------------------------------------------------------------------------------------------------------------------- the output is this: --------------------------------------------------------------------------------------------------------------------- test.rb:5:in `_invoke': (in OLE method `': ) (WIN32OLERuntimeErro r) OLE error code:0 in HRESULT error code:0x80020005 Type mismatch. from test.rb:5:in `
' --------------------------------------------------------------------------------------------------------------------- ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2079 ---------------------------------------- http://redmine.ruby-lang.org