The Blitz commands seems not to get them. I use the Armadillo-Software to protect my software. After I protected my blitz-code with Armadillo I have access to some ENVIRONEMENT Variables, but I don't get them with the Blitz GetEnv Command. When I use the Win32-Api Function I get back the correct length of the string/value, but I don't know how to read out the string/value correctly.
I've also tried to use a bank, but as im not very experienced with it i'm probably doing something wrong. Here is my code:
I've also tried to use a bank, but as im not very experienced with it i'm probably doing something wrong. Here is my code:
api_SetEnvironmentVariable ("TEST", "Value") cbank = CreateBank(256) api_GetEnvironmentVariable ("TEST", cbank, 255) For i=0 To 255 S$=S$+Str(PeekByte (cbank,i))+"|" If i Mod 20 = 0 Then Print "STRING: "+s$ : s$="" Next Print "STRING: "+s$ WaitKey End