Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI session - missing licence ?
Message
 
To
19/03/2004 04:50:44
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00887804
Message ID:
00888001
Views:
13
Hi John,

See help for AddObject. Many ActiveX control requires a license to create object dynamically at run-time. You should subclass the ActiveX Control in a container (using the VFP OLE Control) and then instantiate this container.

Hope this helps
Sylvain Bujold

>I have an application that includes an emailer to the selected customers.
>
>Although my customer does have Outlook (with which we've successfully automated a zillion times), I would prefer to use MAPI, so that I don't have to depend on a specific mail client - part of the deal is that we shall retain the property rights to the software and we may well then sell it as a packaged solution.
>
>ox = CREATEOBJECT("MSMAPI.MAPISession")
>
>The above statement gives an error (don't know the exact words unfortunately) along the lines of "there is no licence for this control".
>
>On my development machine (Fox8, SP1, Outlook, WinXP) it works fine, but on my client's primary machine (Fox runtimes, Outlook express, Win98) the above error is triggered. I have placed MSMAPI32.DLL in their windows\system dirtecory (and also into their App and windows directory as a check) but to no avail.
>
>Any ideas? Thanks in advance,
>
>JC
Previous
Reply
Map
View

Click here to load this message in the networking platform