Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
VFP 6.0 and TAPI 3.0
Vfp 6.0 and TAPI 3.0
I’m trying to Register a FoxPro object as an event Handler for a TAPI address.
My code looks like
llOwner = .T.
llMonitor = .F.
lnMediaTypes = 0x8 && Audio Only
lnCallbackInstance = 1
lnRegistrationToken = goTapi.RegisterCallNotifications( ;
goAddress, llMonitor, llOwner, lnMediaTypes, lnCallbackInstance )
goAddress is a valid TAPI address object.
I have used the VfpCom BindEvents method to bind a TAPI event handler to the goTapi object.
The RegisterCallNotifications call fails with an error, "OLE error code 0x80080004: There is no connection for this connection id"
This code is based on the snippets provided by Microsoft in the MSDN library. I had to adapt it from the VB code.
tia.
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