Dearest monks, I desperately need your wisdom and patience...
I've been working on NT4 SP6 with Outlook 2000 (9.0.0.2711). My perl program retrieves information from the Outlook object by using the object model provided with the VB editor. So far so good... I need to find whether there's an active Outlook window open. Hence I use the code
$app = Win32::OLE->GetActiveObject('Outlook.Application');.
This code works just fine and provided there actually is a window open, the OLE function returns a reference to that window.
However, when I try the code with Win98 and Outlook 2000 SR1 (9.0.0.3821), the function always returns nothing (ie undef). This's been driving crazy because I didn't expect the error to be there and I'd been looking elsewhere. Furthermore the function Win32::OLE->new works fine on both versions of Outlook which makes it even more frustrating.
Has anyone encountered such a problem before ? Please help me out...
Heureux qui, comme Ulysse, a fait un beau voyage
Ou comme celui-là qui conquit la Toison,
Et puis est retourné plein d'usage et raison,
Vivre entre ses parents le reste de son âge!
J. du Bellay, poëte angevin
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.