Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API from other application ?
Message
 
 
À
22/12/2000 05:59:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00456216
Message ID:
00456269
Vues:
22
>I find some useful API from other application that came with include/declare file, sample file and documentation for VB and VC++ only..
>
>How can I make use it from VFP ? is it just modify the include/declare file ?
>if not then is there any other easier way to access those API ?
>
>
>Thanks in advance

Usually that's the case. However, depending on the what parameters need to be passed to the function, it may be difficult or even impossible to implement in VFP. For example, the WNetEnumResource function in MPR.DLL is difficult. People like Christof Lange and Ed Rauh have made it easier with classes to abstract the memory managment but it still isn't for the lay person. The EnumWindows function in User32.DLL is implossible to implement in VFP only because it makes use of a callback function. Because of VFP's memory management, callback function pointers are not available. People have written C/C++ FLLs to augment VFP but that is not VFP.

So saying all that, without knowing the contents of the include file and the declare statement, I can't give you a definitive answer.
Larry Miller
MCSD
LWMiller3@verizon.net

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

Click here to load this message in the networking platform