Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

how work with pointers on VB6?

$
0
0
now i'm trying creating a Pointers class:
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

how can i print the variable addressed value?

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>