>I want to protect my software with HASP(Hardware Against Software Piracy) system. But to encode/decode the data it is necessary to know the offset adress of the buffer (variable).
>
>The assembler code is:
>
>mov p4, Offset EncDecBuff
>
>, where EncDecBuff - is my variable.
>
>Is it possible to do it in VisualFoxPro.
Unfortunately, because of the way VFP handles memory you cannot do this. You cannot reliably find out where a given variable is sitting at any one time, and even if you could VFP may move it on you.
Mike Stewart