>I was hoping someone could show me how to change the following code to VFP. I'm using version 7 for now. I know I need to create sometype of class so that I can capture the events. Do I have to use vfpcom.dll in 7 or is there another way?
>
In VFP 7 and later, you don't need VFPCOM.DLL. Open the Object Browser and open the type library for your object. Expand the Interfaces node and find the appropriate interface. Open an empty code window and drag the interface you want from the Object Browser into the code window. When you drop it, the skeleton code for your event handler class will be generated. Fill in code in the events you want to handle.
In the code that actually uses this stuff, instantiate the appropriate object, instantiate your event handler and use the EventHandler() function to connect the two.
Tamar
Précédent
Suivant
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