CryptoSys API examples VB6 to VB.NET

API_CompileTime

Retrieves the date and time the core library executable was last compiled.

VB6/VBA

Debug.Print "Testing API_CompileTime ..."
Dim nLen As Long
Dim strCompiledOn As String

strCompiledOn = String(255, " ")
nLen = API_CompileTime(strCompiledOn, Len(strCompiledOn))
strCompiledOn = Left(strCompiledOn, nLen)
Debug.Print "API_CompileTime returns " & nLen & " [" & strCompiledOn & "]"

Output

Testing API_CompileTime ...
API_CompileTime returns 20 [Mar 19 2009 14:44:41]

VB.NET

Console.WriteLine("Testing API_CompileTime ...")
Console.WriteLine("API_CompileTime returns " & " [" & General.CompileTime() & "]")

[Contents]

[HOME]   [NEXT: API_ErrorLookup...]

Copyright © 2009-20 D.I. Management Services Pty Ltd. All rights reserved.