>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=378HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao