Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook Integration Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Outlook Integration Problem
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01284036
Message ID:
01284036
Vues:
60
Hello All,

I wrote a standalone EXE, stealing some sample code from Craig Boyd, to send email through Outlook using MAPI. While I was testing, it seemed to work just fine, but when in regular use I get an error saying it can't establish a session, but outlook is open.

Here is a code snippit

loSession = CREATEOBJECT( "MSMAPI.MAPISession" )
loSession.Signon()
IF (loSession.SessionID > 0)
loMessages = CREATEOBJECT( "MSMAPI.MAPIMessages" )
loMessages.SessionID = loSession.SessionID
ENDIF
loMessages.Compose()

Works fine until it fails, after it fails, it continues to fail until I reboot, not even closing and reopening Outlook fixes it. I need to have the email go through the client so the email shows up in the users set folder.

Any suggestions on where the problem lies or how to fix it would be appreciated.

Thanks in advance

Bob
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform