DataFlex Requires Chilkat v11.0.0+
DataFlex
Transition from Crypt2.Decode to BinData.AppendEncoded
Provides instructions for replacing deprecated Decode method calls with AppendEncoded.Chilkat DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Boolean iSuccess
Handle hoCrypt2
Variant hoByteData
String sEncoding
Handle hoBd
Move False To iSuccess
Get Create (RefClass(cComChilkatCrypt2)) To hoCrypt2
If (Not(IsComObjectCreated(hoCrypt2))) Begin
Send CreateComObject of hoCrypt2
End
// ...
// ...
Move "base64" To sEncoding
// ------------------------------------------------------------------------
// The Decode method is deprecated:
Get ComDecode Of hoCrypt2 "ENCODED_DATA..." sEncoding To hoByteData
// ------------------------------------------------------------------------
// Do the equivalent using BinData.AppendEncoded.
Get Create (RefClass(cComChilkatBinData)) To hoBd
If (Not(IsComObjectCreated(hoBd))) Begin
Send CreateComObject of hoBd
End
Get ComAppendEncoded Of hoBd "ENCODED_DATA..." sEncoding To iSuccess
Get ComGetData Of hoBd To hoByteData
End_Procedure