From: Joe Seeley Date: 2006-05-05T23:01:03+09:00 Subject: Re: win32ole and activex ------=_Part_893_20524854.1146837659514 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Johan, Are you using soleb.rb application? I ran into similar problems on an app = I have been working with. I was able to use soleb.rb to see how things were actually being exposed by the WIN32OLE libraries and found significant variances between "spec" and "actual". On 5/5/06, Johan Duflost wrote: > > > Hello all, > > I tried to use win32ole standardlib with an activex control but I got > 'Library not registered' error message. > Here is the code : > > require 'win32ole' > sf =3D WIN32OLE.new('MapWinGIS.Shapefile') > sf.Open('C:/cities/cities.shp') > > method_missing': Unknown property or method `Open' (WIN32OLERuntimeError) > HRESULT error code:0x8002801d > Library not registered > > The open method is present in the specs and the library is registered so = I > don't understand. > > I'm not familiar with windows programming so the way I use to connect to > the activex with ruby is perhaps not the good one. > > Does anybody know where the problem come from ? > > Thank you. > > Johan > > > ------=_Part_893_20524854.1146837659514--