Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for Outlook
Message
 
To
11/02/2000 17:32:53
Carla Fair-Wright
Optimal Consulting Llc
Texas, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00331144
Message ID:
00331161
Views:
17
>How do you determine if outlook is open.
>
>In the code:
>
>objSession = CREATEOBJECT("MSMAPI.MAPISession")
>objMessage = CREATEOBJECT("MSMAPI.MAPIMessages")
>...
>....
>objSession.SignOn
>
>At the SignOn I get a 1429 error if Outlook is not open.

You shouldn't get an error if Outlook is not open, MAPI works in the background and, depending on the properties you set, will either open a new session or, if already open, use the current session. Have a look at my MAPI Class in the files section, all the code you need is in there.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform