BASIC/Visual Basic >> Point Me!!!
Posted by IbYdI on 08:03:00 02-11-2002

ok i need some help:
it's about using pointers in visual basic.
i discoverd that i can use VarPtr... to retrieve the memory adress of a variable.
there is also a function called CopyMemory/RtlMoveMemory which declaration goes as following :
Private Declare Sub CopyMemory Lib "Kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal ByteLen as Long) .
Now its said that through using this function i'll be able to retrieve the value of the memory location i point to.
But it just can't get to work.
So can anybody, please show me the right way to do it, Or point me to a site where this is explained.
thanx

ps. Don't tell me "you cant use pointers in vb.... blah ....blah"

Posted by meistersix on 15:56:00 09-06-2002
try this: Pointers in vb!