Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays & APIs
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00776993
Message ID:
00776997
Views:
10
You can not use DIMENSION, because FoxPro arrays are different from that kind of array the WinAPI functions usually expect as a parameter.

First allocate a memory block. It can be either a regular FoxPro string, or a handle to memory block created by GlobalAlloc, LocalAlloc, HeapAlloc -- API functions allocating memory.

Fill this block with some data -- BYTE, DWORD, UINT whatever is expected -- and pass it to your API function.

FoxPro string is passed by a reference -- like APIFunction(@cBuffer). A handle to memory block is passed as absolute value -- APIFunction(nHandle).

Be specific with your function, and may be I can provide more details on your API call. Check API declarations and code samples on http://www.news2news.com/vfp
Previous
Reply
Map
View

Click here to load this message in the networking platform