are you using latest xHarbour from SVN? Can I see your linker configuration file?
James Bott wrote:Enrico,
Are you closing the file after encryption, then reopening it? I don't see that happening in your posted code. Maybe that is the issue.
James
FUNCTION MAIN()
USE POLIZZE EXCLUSIVE
? SX_DBFENCRYPT( "EMAG" )
? SX_TABLETYPE()
INKEY( 0 )
RETURN NIL
#include "fivewin.ch"
FUNCTION MAIN()
local cPassword:="EHAB"
USE xcustomer EXCLUSIVE // unencrypted source
copy to customer
use
use customer // unencrptyed test file
? SX_DBFENCRYPT( cPassword )
// you must close and then reopen the file
use
use customer
? SX_TABLETYPE()
msgInfo(company,"Company - encrypted")
Sx_SetPass(cPassword)
msgInfo(company,"Company - decrypted")
use
RETURN NIL
did you check if the encrypting function works with memo fields?
HunterEC wrote:Enrico:
It does work with memo fields since I've been using it since 1996 in my production apps.
HunterEC wrote:I suggest that you compile a small program that do the initial encryption using the SIX driver and then, and only then, the DBF header will have the 1st byte changed. Afterwards you can use the DBFCDX driver.
FUNCTION MAIN()
USE ANYTABLE EXCLUSIVE
? SX_DBFENCRYPT( "EMAG" )
? SX_TABLETYPE()
INKEY( 0 )
RETURN NIL
// Test Six lib's DBF encryption
#include "fivewin.ch"
FUNCTION MAIN()
use xcustomer exclusive // source file
copy to customer // working file
use
USE customer EXCLUSIVE
? SX_DBFENCRYPT( "EMAG" ) // returns .t.
? SX_TABLETYPE() // returns 2
RETURN NIL
James Bott wrote:The following code is working fine for me without using the SIX RDD.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 46 guests