Protection of Paradox tables 
Author Message
 Protection of Paradox tables

I've to add a password to paradox tables in my program.
My code to a table is the following:

            MyTable->TableName = "table";
            MyTable->Exclusive=true;
            MyTable->Open();
            StrPCopy(PdxStruct.szTblName, MyTable->TableName);
            lstrcpy(PdxStruct.szTblType, szPARADOX);
            StrPCopy(PdxStruct.szPassword, Contrasena);
            PdxStruct.bPack = TRUE;
            PdxStruct.bProtected = TRUE;
            hDb=MyTable->Database->Handle;
            MyTable->Close();
            Chk(DbiDoRestructure(hDb, 1, &PdxStruct,
                NULL, NULL, NULL, FALSE));

When the table is small (few datas), the process is very speed, but
when the table is big (15 MB) and it has some indexs (for example,4)
the process is very slow.
How can I do that the process is been more speed?

Thanks in advanced



Mon, 12 Dec 2005 23:42:49 GMT
 Protection of Paradox tables

Quote:

> How can I do that the process is been more speed?

try doing it on an empty table, then adding the data.. it might be
faster.. but the bottom line is that encrypting a table takes time, and
writing to an encrypted table takes time..

--

Steve Green - Diamond Software Group, Inc - Waldorf Maryland USA
Corel CTech Paradox - http://www.diamondsg.com - Support/Downloads/Links

---------------------------------------------------------------------------------

Do you need a Sanity Check? http://www.diamondsg.com/sanity.htm
Upgrade/Downgrade versions? http://www.diamondsg.com/upgrade.htm
-------------------------------------------------------------------------



Mon, 12 Dec 2005 23:42:38 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. No instructions for Paradox table protection ?

2. Paradox table password protection

3. Encryption / Protection of Paradox data

4. Paradox 3.5 password protection

5. Password Protection on Paradox databases

6. General protection fault - Paradox 4.5 Win

7. Paradox password protection

8. General Protection Fault Paradox 4.5 DOS in Win95

9. General Protection Violation with Paradox 7

10. Help Request: General Protection Violation (Paradox 7, NT 3.51)

11. General Protection Fault in Paradox 7.0

12. Paradox 4.5 for Win : ODAPI01.DLL Protection error


 
Powered by phpBB® Forum Software