If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!
5 posts • Page 1 of 1
I think you guys are missing DWolf's point. His concern is that the user of the program can load the source file into QBasic and using the editor can change variables before running the program.DWolf wrote:When you save a QBASIC Program to a text file and store variables in it, is there anyway to encrypt the numbers so people using the program can't alter the variables?
You can write out the program in binary or you can encrypt it, but that means that YOU have to be there to unscramble/decrypt it so it can be run by the user. Not very practical.
My suggestion is to compile the program to an EXE file. Now anybody can run the EXE independently, and there is no way they can "monkey" with any variables or any code. That's the beauty of an EXE file.