Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI
Message
From
09/09/1997 18:26:51
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Re: MAPI
Miscellaneous
Thread ID:
00049045
Message ID:
00049239
Views:
57
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!!
Previous
Reply
Map
View

Click here to load this message in the networking platform