first of all, you have to know which type of variable is, then use the copymemory API:
Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Be EXTREMELY careful. save your project before running it, because that is one of the most dangerous API. Pass the wrong parameter and... GPF!
I usually never use the 'general' definition, because I do not like the Any (can be anything, just like a C pointer)
Marco
|