Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an Outlook Object
Message
De
17/05/2004 08:13:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Creating an Outlook Object
Divers
Thread ID:
00904517
Message ID:
00904517
Vues:
55
Hello all together!

Im using WinXP, Office 2003 and Fox 8. And I'm trying to create an Outlook application object with createObject(). Here is the code:

local oApplication

oApplication = createobject('Outlook.Application')

if type('oApplication') = 'O'
wait window 'Application ok'
release oApplication
else
wait window 'Application !ok'
endif

Whe I run it once it works fine. But when I run it twice I get the OLE error code 0x80004002. What goes wrong? The same code with Win200, Office 200 and Fox 8 is runnig perfect.

It would be great to get some support. Thanks in advance.

Regards
Jörg Schneider
Joerg.Schneider@SMARTCRM.de
SMARTCRM CRM powered by MS Visual FoxPro
SMARTCRM GmbH
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform