From: Barry Walker Date: 2007-03-06T04:39:25+09:00 Subject: Re: Win32OLE trouble (custom ocx) Masaki Suketa wrote: > BTW, Does the following VBScript work? > Set obj = CreateObject("QPTnt.ocx") > obj.Version > or > Set obj = CreateObject("QPTNT.QPTntCtrl.1") > obj.Version > > If it would not work, Win32OLE script does not work. You're leading me toward the problem. That VBScript code does not work. It actually gives the same error statement that win32ole gives! I went back and tried to re-create my VBScript code. I remembered I used "ActiveX Control Pad" to test the VBScript method last year. This is code (embeded in and html doc and mostly generated by ActiveX control pad) that works with my ocx. OCX test
It works and returns the version of the OCX as specified by the Version method. Is there an equivalent Ruby syntax that might work? Does this provide a clue why my ocx won't work with the win32ole? Thanks -- Posted via http://www.ruby-forum.com/.