Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointer to a memory address
Message
From
21/10/2001 16:48:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Pointer to a memory address
Miscellaneous
Thread ID:
00571491
Message ID:
00571491
Views:
44
Hello, All.

I want to use CopyMemory function. Besides the fact this function does not exist (it's an alias), I have some problems with it.

The following code works:
DECLARE INTEGER GetCommandLine IN kernel32

DECLARE RtlMoveMemory IN kernel32 As CopyMemory;    
    STRING  @ Destination,;    
    INTEGER   Source,;    
    INTEGER   nLength

lnAddress = GetCommandLine()

lpBuffer = SPACE(1024)
= CopyMemory (@lpBuffer, lnAddress, Len(lpBuffer))  
The value of the GetCommandLine() function is numeric. In fact, is a pointer to a memory address.

Now: I'd like to have the same feature with native VFP functions. For example, GETENV('PATH')
lcString = GETENV('PATH')
How can I obtain the memory address where the lcString is stored, to pass it to CopyMemory function?

Thanks in advance.
Grigore Dolghin
Class Software.
Next
Reply
Map
View

Click here to load this message in the networking platform