now i'm trying creating a Pointers class:
how can i print the variable addressed value?
Code:
Option Explicit
Dim pont As Long
'getting a variable pointer:
Public Sub GetPointer(ByRef valor As Long) 'permite aceitar o sinal de igual
pont = VarPtr(valor)
End Sub
'print the variable addressed value:
Public Sub Printme()
Debug.Print pont
End Sub