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)
Mars Saxman escribió:
On Jul 10, 2006, at 4:49 PM, Rafael Vallejo wrote:
How do I know the memory address where a variable is located,
You don't. There is no way to find this out.
can be any of them Integer, Strings, etc. no mater wich one I need
to know the memory address of that variable on any place of my program.
Why do you need this? What is it you are trying to do?
Mars Saxman
REAL Software
_______________________________________________
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>
******************************************************
This message has been scanned for viruses and
dangerous content by Kypus Server Appliance E-Mail
Protection Service, and is believed to be clean.
******************************************************
_______________________________________________
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>