I have been experimenting with a cannibalised version of the VFP6.0 'mailbtn' container class (in \samples\vfp98\classes\buttons.vcx) and created a class of my own which automatically sends a subject, message and attachment. I have made sure that it signs the user on and off again each time using the SignOn and SignOff methods.
When placed in a test form it works fine. However, if I close the form and try to run it again it returns an error from the MAPI controller (usually it can't find the attachment). If I quit FoxPro and start it again, the same code works again. Any idea what I'm doing wrong?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement