Hi Bob,
My first comment is to make sure you are aware that Cryptor will allow a file to be encrypted twice. This can be confusing because it does not warn you that the file is already encrypted.
Besides this point I would say first try and run your encrypt/decrypt tests as an administrator. Load VFP using the "Run As Administrator" and try it like that first.
The test here is to try and eliinate possible causes and the main cause of problems I found was that the dll was not correctly registered.
Note: I do not use the DEEP option.
I am also not clear on exactly what line the error is occuring on in your example.
>Dear Jos,
>
>Sorry it took a while for me to respond back to you because I was traveling and had no internet access for almost a week. I need your help desperately to make Cryptor 5.0 to run on Vista. After I have deactivated the UAC, I was able to register successfully the xicr50.dll on my Vista Home Premium Laptop. I'm still having problem registering it on the Vista Business edition desktop. On my laptop (Home Premium) after registering xicr50.dll, I'm running the following code that causing an error message on XiCr.WatchDLL("VFP9.EXE"):
>
>I encrypt first :
>
>
> *---------- this prg to encrypt tables
> CREATE CURSOR encresult(table_name c(15), errcode n(3))
>
> * Load the Cryptor 5 object
> XiCr= CREATEOBJECT("XitechCryptor.Cryptor")
>
> * Use Deep mode to catch all modules in use
> XiCr.Deep=.t.
>
> * Watch Visual FoxPro
> XiCr.WatchDLL("VFP9.EXE")
> XiCr.WatchDLL("VFP9R.DLL")
> XiCr.WatchDLL("VFP9T.DLL")
>
> *---------- encrypt tables
> lnerrcode = XiCr.EncodeFile("proopen.dbf", "password", 512)
> INSERT INTO encresult(table_name, errcode) VALUES ("proopen.dbf",lnerrcode)
>
>
>
>Then I register when running my application EXE:
>
>
> *---------- to register the encrypted files
>
> * Load the Cryptor 5 object
> XiCr= CREATEOBJECT("XitechCryptor.Cryptor")
>
> * Use Deep mode to catch all modules in use
> XiCr.Deep=.t.
>
> * Watch Visual FoxPro
> XiCr.WatchDLL("VFP9.EXE")
> XiCr.WatchDLL("VFP9R.DLL")
> XiCr.WatchDLL("VFP9T.DLL")
>
>
> * Register a file with Cryptor 5 with a key of Pass and the default method
> XiCr.Register("proopen.dbf", "password", 512)
>
>
>The Program error that I get from XiCr.WatchDLL("VFP9.EXE") when I encrypt and register is :
>
>OLE exception error: Exception code c00000fd. OLE object may be
>corrupt
>
>I hope you would be able to help me fix the problem and figure out what I'm doing wrong.
>
>Thanks alot for your help.
>
>Bob
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.