loSession = CREATEOBJECT("MSMapi.MapiSession")
loMessage = CREATEOBJECT("MSMapi.MapiMessages")
...
I used the above code in my application and make it a EXE, on the user's machine (WinMe and 2K Server) I added the file MsMapi32.ocx and registered it with Regsvr32, but I still got the error:
"OLE Error Code 0x80040112: Appropriate license for this class not found"
Is there anything wrong ? I use VFP7.
I found two related articles for VFP6 in MSDN, but I don't know is it also applicable to VFP7:
139154 - INFO OLE Control Licensing in Visual FoxPro
192693 - BUG License Error with ActiveX Control Added at Run-Time