Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for Outlook
Message
 
À
11/02/2000 17:32:53
Carla Fair-Wright
Optimal Consulting Llc
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00331144
Message ID:
00331161
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform