Re: Win32::OLE question
As a followup to my earlier message; I was advised by email to check out the Win32::OLE::Variant module, which I have done, and it has solved one part of the problem. However, my script still causes a page fault in OLE32.DLL. If I then rerun the script, Windows starts bottoming out with GPFs in USER.EXE and I have to reboot. The DLL I am using works perfectly with Visual Basic, Visual FoxPro & Delphi. What can I do to fix this? Many thanks Ben --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to [EMAIL PROTECTED] For non-automated Mailing List support, send email to [EMAIL PROTECTED]
Re: Win32::OLE Question
On Fri, 19 May 2000 11:30:45, "Scott K Purcell" <[EMAIL PROTECTED]> wrote: >#! perl >use Win32::OLE; >my $mailer = Win32::OLE->new("SMTPsvg.Mailer") or die >scalar($Win32::OLE->LastError()); >And the error is: >Can't call method "LastError" on an undefined value at >G:\Inetpub\wwwroot\test4.pl line 5. LastError is a class method; there is no variable called $Win32::OLE. You call it like this: Win32::OLE->LastError BTW, the scalar() around it doesn't make any sense. If you want the numeric error code instead of the test, use either int() or just add zero "0+Win32::OLE->LastError". -Jan --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to [EMAIL PROTECTED] For non-automated Mailing List support, send email to [EMAIL PROTECTED]