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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only