From: Shin guey Wong Date: 2007-02-06T21:04:49+09:00 Subject: Re: WIN32OLE in ruby windows one click installer Masaki Suketa wrote: > > Before you try the new version, could you try the following with > the current version? > > def FindAllAvmc(arg0) > # specify VT_BYREF|VT_ARRAY|VT_VARIANT instead of > # VT_BYREF|VT_ARRAY|VT_DISPATCH > ret = @dispatch._invoke(2, [arg0], [VT_BYREF|VT_ARRAY|VT_VARIANT]) > @lastargs = WIN32OLE::ARGV > ret > end > > Regards, > Masaki Suketa I had tried to use the code above. It still not working, I am getting the same error message: irb(main):004:0> avmc.FindAllAvmc(dev) WIN32OLERuntimeError: _invoke OLE error code:0 in HRESULT error code:0x80020005 Type mismatch. from ./avmc.rb:39:in `_invoke' from ./avmc.rb:39:in `FindAllAvmc' from (irb):4 Thanks for you reply. I will try to install the new ruby 1.9 on other machine and try again. I had been using this dll on C# and python. Both is working fine. May be I also need to look into the source code...but I am really not familiar with windows com dll programming. It seems like too many specification on it. Regards, Shin Guey -- Posted via http://www.ruby-forum.com/.