Forum: Ruby win32ole and activex

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4bd4b7ebbecc766bbcf076eeaf3a9a42?d=identicon&s=25 Johan Duflost (Guest)
on 2006-05-05 10:10
(Received via mailing list)
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 = 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
4ea56c658e69eef33b6557b20c7a19ab?d=identicon&s=25 Joe Seeley (jseeley)
on 2006-05-05 16:02
(Received via mailing list)
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".
This topic is locked and can not be replied to.