From: Masaki Suketa Date: 2006-04-10T22:01:34+09:00 Subject: Re: win32ole with COM method taking two out refs Hello, In message "Re: win32ole with COM method taking two out refs" on 06/04/10, Adam Gardiner writes: > > session = WIN32OLE.new('Hyperion.HsvSession') > > obj = session._invoke(0, [], []) > > p obj > > This fails with the following error message: > hfm.rb:5:in `_invoke': _invoke (WIN32OLERuntimeError) > OLE error code:0 in > > HRESULT error code:0x80020003 > Member not found. from hfm.rb:5 Hmm, I hope the session OLE object would have DISPID_VALUE method, but not. > I would have expected this to get at least as far the other code. Any > idea why the WIN32OLE._invoke call doesn't like the same parameters that > work when I call WIN32OLE.OpenApplication? Sorry, but I do not have any idea. How can I get the COM server what you are using? If I can get the COM server, then I could investigate it more. By the way, by using VBScript (not VB) can you realize what you want? Unfortunately, if you can not, then you may not write the code using Win32OLE. Regards, Masaki Suketa