Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EVENTHANDLER() fails w/o error.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
EVENTHANDLER() fails w/o error.
Divers
Thread ID:
00928308
Message ID:
00928308
Vues:
54
Hey guys,

I got some help from Larry Miller (thanks again, Larry!) on this problem a few months back, but never quite completed what I needed to do. Here's what I have in a nutshell:

I have a 3rd party DLL from which I create objects, and I have the Object Browser generated classes for the needed interfaces in my code.
oObject=NEWOBJECT("3rdPartyDLL.Class1")
oObjectWatcher=NEWOBJECT("WatcherClass")
EVENTHANDLER(oObject,oObjectWatcher)

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

DEFINE CLASS WatcherClass AS SESSION OLEPUBLIC

    IMPLEMENTS IClass1 IN "3rdPartyDLL.Class1"

    PROCEDURE IClass1_SomeWatchedProcedure()
    ENDPROC

...etc...

ENDDEFINE
Both objects instantiate, but EVENTHANDLER() returns .F. and no errors. Also, after generating a DLL from WatcherClass and instantiating it in the code instead of using the inline code, EVENTHANDLER() throws this error:

"Eventhandler object [missing object name] does not implement an interface."

Notice that where the object name would be, there's a blank; just like my mind at this point!

Any help would be appreciated! Thanks!
John MR Fitzgerald
Order Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform