Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to register MSMAPI32 ?
Message
From
28/01/2001 10:55:32
 
 
To
26/01/2001 14:08:54
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00468935
Message ID:
00469509
Views:
10
Problem is somewhere in SendMail() code of cusmapi, maybe in lnSessionID=THIS.CreateSession(lcUserName,lcPassword), but I don't check it.
I rewrite my code, I first check if the key in registry exists:

on error ... (only return, pnError get error number)
for ii=1 to 2
pnError=0
poMail=CreateObject("cusmapi")
* is key in registry ?
poRegistry = CreateObject("registry")
lcWriteKey = poRegistry.ReadRegistryString()
if not lcWriteKey = Key
* write the key
poRegistry.WriteRegistryString()
endif
if poMail.SendMail()=0
exit
else
... copy MSMAPI32.OCX to system and register
endif
next
if pnError!=0
... error
endif

It's not nice, but it works.
Pavel
Previous
Reply
Map
View

Click here to load this message in the networking platform