Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DECLARE Certain API's Function Type and Parameter
Message
From
05/04/2002 16:13:10
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00641553
Message ID:
00641629
Views:
15
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform