in reply to Re: Re: MS Outlook GetSharedDefaultFolder
in thread MS Outlook GetSharedDefaultFolder

Perhaps you should use Win32::OLE->LastError() instead of $! for a descriptive OLE error msg.

$! is for perl errors not OLE, note that Win32::OLE->LastError() is context sensitive like $!.

It reports the error number in numeric context and an error msg in string context

I would even consider setting the Warn option to always croak, in normal situations like this

Win32::OLE->Option(Warn => 3);

HTH

Replies are listed 'Best First'.
Re: Re: Re: Re: MS Outlook GetSharedDefaultFolder
by Mitch (Sexton) on Sep 04, 2003 at 17:47 UTC
    Thanks for the tip. I used the LastError() and it returned

    OLE exception from "Microsoft Outlook": The messaging interface has returned an unknown error. If the problem persists, restart Outlook.
    Win32::OLE(0.1502) error 0x80004002: "No such interface supported"
    in METHOD/PROPERTYGET "GetSharedDefaultFolder"

    Mitch