{
IVistaDBDDA DDAObj = VistaDB.DDA.VistaDBEngine.Connections.OpenDDA();
string OldPhrase = null;
string NewPhrase = "pass.word";
// You do not have to provide a path - Dot Net looks in the current working directory by default.
DDAObj.PackDatabase(fileName, OldPhrase, NewPhrase, pageSize, LCID,
caseSensitive, false, new OperationCallbackDelegate(this.OnPackInfo));
}
public void OnPackInfo(VistaDB.DDA.IVistaDBOperationCallbackInfo operationDelegate)
{
if (operationDelegate.Progress < 0)
return;
int ProgressPercent = operationDelegate.Progress;
string ProgressText = String.Concat("Performing ",
operationDelegate.Operation.ToString()," on ",
operationDelegate.ObjectName.ToString(),":");
}