Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ERROR: 'EventHandler object does not IMPLEMENT an interface'
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
ERROR: 'EventHandler object does not IMPLEMENT an interface'
Divers
Thread ID:
00799056
Message ID:
00799056
Vues:
84
Howdy,

I am experiencing an annoying problem that I hope some genius here can help me with. I have been working with an extremely poorly documented API recently, and have been successfully (albeit slowly) implementing its featres into my VFP app.

I am somewhat new to event-handling, so there's a possability that I'm messing something up here, although VFP doesn't barf on me until it tries to bind my event-handler to the VFP object.

I created CIC.DLL with the following code:
DEFINE CLASS ServerEvent AS session OLEPUBLIC

	IMPLEMENTS IEICServer2 IN "C:\PROGRAM FILES\INTERACTIVE INTELLIGENCE\CLIENTCOMLITEA.DLL"

        PROCEDURE IEICServer2_Connect(p_App AS STRING, p_Server AS STRING,_
        p_User AS STRING, p_Password AS STRING, p_Station AS STRING,_
        p_AutoDisconnect AS LOGICAL) AS VOID;
          HELPSTRING "The Connect method establishes a connection with_
          the IC Server,and logs the user into Client Services."
	  MESSAGEBOX("Connected "+p_User)
	ENDPROC
...etc.
...using VFP's class-browser.

In the app that calls the DLL, the code looks like this:
oConnection=CREATEOBJECT('ClientCOM2.EICServer2')
oServerWatcher=CREATEOBJECT('CIC.ServerEvent')
EVENTHANDLER(oConnection,oServerWatcher)
When it attempts to bind, I get this error:
EventHandler object does not IMPLEMENT an interface
Anyone know what's up?

Thanks!
John MR Fitzgerald
Order Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform