From: Masaki Suketa Date: 2006-04-07T23:59:44+09:00 Subject: Re: win32ole with COM method taking two out refs Hello, In message "win32ole with COM method taking two out refs" on 06/04/07, Adam Gardiner writes: > I've tried passing nil, which leads to a Type mismatch error. > I've tried passing Object.new, which allows the method to succeed and > returns WIN32OLE objects in ARGV[3] and ARGV[4]. However, these objects > have no associated type library information, so I then receive > "undefined method" errors if I try to call any methods on them. What is the result of the following? p ARGV[3] p ARGV[4] If the result is nil, then Win32OLE can not get ARGV[3] and ARGV[4]. > In VB, the example code defines variables for arg3 and arg4 that are of > types defined in the type library (HsxServer and HsvSession), i.e. > > Dim session as HsvSession > Dim server as HsxServer > > Is there any way to achieve the same thing in Ruby with win32ole? Unfortunately, there is no way to create variable defined in the type library. Regards, Masaki Suketa