' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Declare Sub B64Encode Lib "D:\IDEProjects\VisualStudio\B64\Release\B64" Alias "_B64Encode@8" (ByVal oldfilename As String, ByVal newfilename As String)
Declare Sub B64Decode Lib "D:\IDEProjects\VisualStudio\B64\Release\B64" Alias "_B64Decode@8" (ByVal oldfilename As String, ByVal newfilename As String)

Function b64test()
    Call B64Encode("C:\z.in", "C:\z.b64")
    Call B64Decode("C:\z.b64", "C:\z.out")
End Function
