Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DECLARE Certain API's Function Type and Parameter
Message
De
05/04/2002 16:13:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00641553
Message ID:
00641629
Vues:
16
>>I want to use some Windows API functions in VFP. If the function return type is a Handle, should I declare it as an INTEGER function type? Furthermore, if the API function's parameter is a structure, e.g. LPWIN32_FIND_DATA in FindFirstFile,how do I declare it in VFP?
>>
>>Thanks in advance.
>
>Yes, you would declare handles as integers. They are simply numbers.
>
>WinAPI Structures are contiguous memory blocks. The only thing in VFP that equates are strings so you have to translate the structure in a string consisting of all the elements of the structure.
>
>Here is a VFP example using this function and structure. http://www.news2news.com/vfp/?example=236&function=378
>
>HTH.

It is very helpful. Thanks.

WL
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform