vazagothic
Programmer
Hello All,
I've encountered a weird problem while trying to make a Xceed Encryption Library v1.1 work (an ActiveX dll). I know they say on the web site, that it doesn't support VFP, but I believe there is a way to make it work
Anyway, my problem is as follow - in short (and making it simpiler):
I have a variable (gcPublicKey), which contains binary data. I want to store its content to a file, so I can use it later.
I try to decipher the content of a file using ASC() function and then store the result in a file, so I can recreate it.
When I read the content of the file and store it in a vaPublicKey, the following conditions return true:
[red]
(gcPublicKey == vaPublicKey)
(LEN(gcPublicKey) = LEN(vaPublicKey))
[/red]
But when I feed the ActiveX with this recreated string I get an error - something has to be wrong with it.
I can cut create new variable by adding two slices of gcPublicKey, I can assign it to another variable and the output still works.
But when I try to copy the content of gcPublicKey using:
[red]
vaPublicKey = ""
FOR I = 1 TO LEN(gcPublicKey)
t = SUBSTR(gcPublicKey,i,1)
vaPublicKey = vaPublicKey + t
ENDFOR
[/red]
I get the same problem as I did before.
Is there another way to disassemble first string so I can store it in exactly the same way ?
I've encountered a weird problem while trying to make a Xceed Encryption Library v1.1 work (an ActiveX dll). I know they say on the web site, that it doesn't support VFP, but I believe there is a way to make it work
Anyway, my problem is as follow - in short (and making it simpiler):
I have a variable (gcPublicKey), which contains binary data. I want to store its content to a file, so I can use it later.
I try to decipher the content of a file using ASC() function and then store the result in a file, so I can recreate it.
When I read the content of the file and store it in a vaPublicKey, the following conditions return true:
[red]
(gcPublicKey == vaPublicKey)
(LEN(gcPublicKey) = LEN(vaPublicKey))
[/red]
But when I feed the ActiveX with this recreated string I get an error - something has to be wrong with it.
I can cut create new variable by adding two slices of gcPublicKey, I can assign it to another variable and the output still works.
But when I try to copy the content of gcPublicKey using:
[red]
vaPublicKey = ""
FOR I = 1 TO LEN(gcPublicKey)
t = SUBSTR(gcPublicKey,i,1)
vaPublicKey = vaPublicKey + t
ENDFOR
[/red]
I get the same problem as I did before.
Is there another way to disassemble first string so I can store it in exactly the same way ?