main logo
Subject: RE: MAPI emailing from VFP error: HELP
Author: "Greg Gum"
Posted: 2003/04/30 15:30:00
 
View Entire Thread
New Search


Phillip,

Instead of using Createobject(), try subclassing them (oleobject) so
they are each a visual class, and then drop them on a form and work with
them from there.

That is what I do for one app, and I have had no trouble with license
issues.

There is some reasoning behind this, but I don't quite grok what it is.

In the samples app, there is an example of using the MAPI classes, and
the buttons used in the class are what I based some code on to get it to
work.

Greg

-----Original Message-----
From: profox-admin /AT/ leafe D.O.T com [mailto:profox-admin@leafe.com] On Behalf
Of Philip L. Borkholder
Sent: Wednesday, April 30, 2003 3:37 PM
To: profox /AT/ leafe D.O.T com
Subject: MAPI emailing from VFP error: HELP

This is a strange one:

I programmed a VFP app for a customer to create a MAPI session:
o_Session = CREATEOBJECT("MSMapi.MapiSession")
o_Message = CREATEOBJECT("MSMapi.MapiMessages")

and it works fine on my computer but when I run the application on my
customer's computer (WINXP PRO with Outlook Express 6.0), I get an OLE
error
that says the
CLASS NOT LICENSED FOR USE

Why would this work on mine and not the customers?
I did regedit and found the MSMapi.MapiSession class on their
computer...

T.I.A.

-Philip


[excessive quoting removed by server]



 
©2003 Greg Gum
<-- Prior Message New Search Next Message -->