Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to register MSMAPI32 ?
Message
 
 
À
26/01/2001 14:08:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00468935
Message ID:
00469509
Vues:
11
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform