Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DECLARE Certain API's Function Type and Parameter
Message
 
 
To
05/04/2002 13:37:49
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00641553
Message ID:
00641569
Views:
11
>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform