Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handle to Pointer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00775644
Message ID:
00775706
Vues:
13
Let say for example:
local nEnv as long
declare long LScreateEnvLng in 'lingd80.dll'
declare long LSopenLogFileLng in 'lingd80.dll' (long pEnv, string cFile)
nEnv   = LSCreateEnvLng() && returns a long value as the handle
nError = LSopenLogFileLng(nEnv, "c:\temp\file.log") && requires pointer
>Please provide more details: what is the API function, pointer to what kind of data you need etc.
>
>It is easy to provide the pointer to a FoxPro string.
>For instance in the following code a pointer is used to return data from API function:
>
>DECLARE INTEGER GetWindowsDirectory IN kernel32;
>	STRING @lpBuffer, INTEGER nSize
>
>cBuffer = SPACE(250)
>nResult = GetWindowsDirectory(@cBuffer, Len(cBuffer))
>cBuffer = Left(cBuffer, nResult)
>? cBuffer
>
>
>Check http://www.news2news.com/vfp for more code samples using Win32 functions in Visual FoxPro.
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform