Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI
Message
De
09/09/1997 18:26:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Re: MAPI
Divers
Thread ID:
00049045
Message ID:
00049239
Vues:
52
Try:
Array = CreateObject("msmapi.mapisession")

Basically, when you're not sure about the parameter you should pass to CreateObject() for a control that you know it is installed on your computer:

1. Open a form;
2. Click on the Ole Container Control on the toolbar;
3. Draw a rectangle on the form for the new control. VFP will display the Insert Object window.
4. Choose the control you want from the list, click on OK;
5. Go to the Properties window and look what's the value of OleClass property for the new control. This is the string you must pass to CreateObject().

HTH,
Vlad

>>>Does anyone know what "class definition MAPI.Session is not found" mean??
>>
>>You probably try to use MAPI.Session as a class VFP cannot find the definition for it. What's the line that gives you this?
>>
>>Vlad
>
>Hi Paul,
>
>I'm trying to create a MAPI session.
>
>Array = CreateObject("MAPI.Session") This is the line that give me the error.
>
>Any idea!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform