Download my StringBuffer code from <http://www.declareSub.com/>. I
think it uses RtlMoveMemory, so you can use it as an example.
Charles Yeomans
On Jul 10, 2006, at 8:36 PM, Rafael Vallejo wrote:
Im trying to use the copy memory blocks in Windows whit this
windows API
On VisualBasic this is done this way
Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
(Destination As Any, Source As Any, ByVal Length As Long)
I do not find a way to declare a variable as Any just like
VisualBasic does but I read that the RtlMoveMemory Function needs
basicaly the memoru address or by mean a pointer to the variable I
want to move I can do it with Memoryblock but I have to add more
code than i VisualBasic by asigning each byte of the memory block
with each byte from my variable and that depends on what variable
type for the way to fill the memoryblock so it turns a headache.
This is in real Basic but is non functional
Method Name Copy Memory
Parameters Destination As Integer, Source As Integer, Size As Integer
Returns Type <Left Empty>
Declare Sub CopyMemory Lib "kernel32" alias
"RtlMoveMemory" (Destination as Integer, Source as Integer,
Length as Integer)
CopyMemory(Destination, Source, Size)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>