General information
Category:
Internet applications
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
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