Fast forward to Strataframe. I need to access those tables from Strataframe both at runtime and at design time. Runtime seems straightforward (though I haven't done it yet ), but where would you place the equivalent code in the development environment so that the BO mapper can access the encrypted dbf?
Thanks,
Alex
CLOSE ALL
* Instantiate Cryptor and tell it to watch disk access by oledb32.dll
poCryptor.WatchDLL("oledb32.dll")
* Register table plemp.dbf with Cryptor as encrypted
* Access plemp.dbf via vfpoledb
oConn =
oRS =
cConnStrng = "Provider=vfpoledb;Data Source=" + "z:\VPay950\Contab\sosa"
oConn.
oRS = oConn.Execute("SELECT * FROM plemp")
?oRS.
FUNCTION
PARAMETER
lcPassword = 'password'
lnAlgorithmNumber = xxx
poCryptor.Register(tcFile,lcPassword,lnAlgorithmNumber)
RETURN