Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ERROR: 'EventHandler object does not IMPLEMENT an interf
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00799056
Message ID:
00799112
Vues:
23
John,
Is Connect the only method in the IEICServer2 interface? If not, you need to include every method, even if you don't have code in it (insert a comment between the Procedure..EndProc). Otherwise the interface won't bind.

HTH.

>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!
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform