Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Hi Carlos,
The code I gave is of course just a minimal prototype to get things going :)
>the solution is to wrap each and every API function in a VFP UDF function, but the name of the VFP UDF should be the same as the alias of the API function. We are taking advantage of the fact that declared API functions take precedence over VFP UDF functions, so the first time you call the function, the VFP UDF is executed, then the UDF declares the API function and in the last line "calls itself", but this time the API function has been declared, so the API function takes precedence and is executed. From there on, everytime we call the function, the API function wlll be executed, until somewhere else a CLEAR ALL, CLEAR DLLS or similar is run, then the VFP UDF kicks in again and redeclares the API function.
Thank you for the smart trick
François
Précédent
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