Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Declare Function StrLenA Lib "kernel32" Alias "lstrlenA" (ByVal Ptr As Long) As Long
Public Declare Function StrCopyA Lib "kernel32" Alias "lstrcpyA" (ByVal RetVal As String, ByVal Ptr As Long) As Long
Public Function PointerToAsciiStr(ByVal LongPtr As Long) As String
Dim StrLeng As Long
Dim StrValue As String
Dim NullPos As Long
Dim RetVal As Long
PointerToAsciiStr = vbNullString
If (LongPtr > 0) Then
StrLeng = StrLenA(LongPtr)
If (StrLeng > 0) Then
StrValue = Space$(StrLeng + 1)
RetVal = StrCopyA(StrValue, LongPtr)
NullPos = InStr(StrValue, Chr$(0))
If (NullPos > 0) Then
PointerToAsciiStr = Left(StrValue, (NullPos - 1))
Else
PointerToAsciiStr = StrValue
End If
End If
End Function