Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation with Outlook 2007
Message
De
01/09/2008 15:48:43
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01310442
Message ID:
01343888
Vues:
23
Thanks! That seemed to work.

>Remove OLEPUBLIC clause.
>
>>I got the code to work and tested on another machine that has Outlook 2007. However, I am unable to compile the EXE on my machine (which does not have Outlook 2007) and get error "Type Library {00062FFF-0000-0000-C000-000000000046}#9.3 not found." Is there any way to compile the exe on my machine without installing Outlook 2007?
>>
>>>You can use Object Browser, as usual
>>>
>>>DEFINE CLASS myclass AS session OLEPUBLIC
>>>
>>>	IMPLEMENTS ApplicationEvents IN {00062FFF-0000-0000-C000-000000000046}#9.3
>>>	
>>>	*IMPLEMENTS ApplicationEvents IN "C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE12\MSOUTL.OLB"
>>>
>>>	PROCEDURE ApplicationEvents_ItemSend(Item AS VARIANT, Cancel AS LOGICAL @) AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_NewMail() AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_Reminder(Item AS VARIANT) AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_OptionsPagesAdd(Pages AS VARIANT) AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_Startup() AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>	PROCEDURE ApplicationEvents_Quit() AS VOID
>>>	* add user code here
>>>	ENDPROC
>>>
>>>ENDDEFINE
>>>
>>>
Elyse Pomerantz
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform