Francisco Zarabozo schrieb am 05.02.2012 um 20:06 (-0600): > The following code, executed on the same machine (with Windows 7 x64) but > using ActiveState Perl 5.12 x86 works well, but when using ActiveState Perl > 5.12 x64 it doesn’t work:
> use strict; > use warnings; > use Win32::OLE; > > my $obj = new Win32::OLE 'GeoIPCOMex.GeoIPex'; I don't have that class, so couldn't test. Try replacing the ProgId with 'Msxml2.Domdocument.6.0'. Works for me using ActivePerl (v5.12.3) built for MSWin32-x64-multi-thread. And for x86, too, of course. > Error loading object: Win32::OLE(0.1709) error 0x80040154: "Clase no > registrada" (spanish for "Class not registered") > > Of course, the class IS registered as you can see on the 32 bit Perl > execution. > > I'm guessing this has to do with 32 bit and 64 bit DLLs and that > Win32::OLE works with 32 or 64 bit registrations/DLLs accordingly to > whether you are using a 32 or 64 bit version of Perl. But, I'm just > guessing and I'm not really sure about what the problem is or how to > solve it. Sorry, don't have more in-depth COM knowledge (yet). Michael _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs