Good Evening:
I hope that someone can help me. I have a password paradox table, that I used the example of the OnPassword example in the CBuilder 5 help file. When I first add the routines, and put the password in the TForm1:assword function call, compile it, and test it it works OK (doesn't prompt for the password). Then to test it further, I change the password to the WRONG password, compile the program, and it prompts with the password dialog box from Paradox, which I expected. I then would change the password back to the good one, compile it, and it still prompts me. I know the case is OK, because for the testing I use the password of 12345. I would delete ALL of the OBJ files, and do a 100% build of the program again, and it still prompts me for the password, although it's correct.
I then would delete the Password function (and the associated declarations and the "Session->OnPassword = Password;" in the TForm1::FormCreate(TObject *Sender), compile the program and it works OK on non-protected tables. I then add the functions/declarations back in, compile it, and it access the table without prompting. If I then change the password again to a wrong one and back to the correct one, compiling the program completly between each, the problems start again.
Can anyone help?
I hope that someone can help me. I have a password paradox table, that I used the example of the OnPassword example in the CBuilder 5 help file. When I first add the routines, and put the password in the TForm1:assword function call, compile it, and test it it works OK (doesn't prompt for the password). Then to test it further, I change the password to the WRONG password, compile the program, and it prompts with the password dialog box from Paradox, which I expected. I then would change the password back to the good one, compile it, and it still prompts me. I know the case is OK, because for the testing I use the password of 12345. I would delete ALL of the OBJ files, and do a 100% build of the program again, and it still prompts me for the password, although it's correct.
I then would delete the Password function (and the associated declarations and the "Session->OnPassword = Password;" in the TForm1::FormCreate(TObject *Sender), compile the program and it works OK on non-protected tables. I then add the functions/declarations back in, compile it, and it access the table without prompting. If I then change the password again to a wrong one and back to the correct one, compiling the program completly between each, the problems start again.
Can anyone help?