Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointer to a memory address
Message
De
21/10/2001 16:48:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Pointer to a memory address
Divers
Thread ID:
00571491
Message ID:
00571491
Vues:
46
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform