Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays & APIs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00776993
Message ID:
00776997
Vues:
8
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform