Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handle to Pointer
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00775644
Message ID:
00775706
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform