Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
>Assuming i have a C dll.(or a C++).
>this dll in my knowledge cannot be embed on vfp object browser to see its methods/events.its not a classic com dll.
>how can i communicate from vfp with this dll and use all its expected functions.
>-a visual example code can be usefull.
>
>update: i know its turns around DECLARE DLL but i want a real example with a C dll for ex.
>thank you in advance.
One of the very good things in a link referenced in this thread is:
Here’s a tip I remember Drew Speedie mentioning a few years back. Because API functions
with the same name as FoxPro functions take precedence in the calling heirarchy, you can
dynamically load API functions on-demand by wrapping them in a VFP function of the same
name. The first time you call it, the VFP function will be called, the API function will load
and get called, but on subsequent calls the API function will be called directly.
? getActiveWindow()
getActiveWindow.prg
DECLARE INTEGER GetActiveWindow IN user32
RETURN GetActiveWindow()
You must remember to include any parameters needed by the API in the prg.
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