That sound like what I need I was using memoryblocks but I didn't know I
can assign a memory adress to it, how do I assing the value of a memory
address to that memoryblock.
This is the case in C
m_pView is a pointer so in RealBasic it can be a Memory block as I
understood from your email, MapViewOfFile is a system call to windows32
API that returns a memory address that I need to store in that pointer
in this case a memory block, so how to write this in RealBasic (I think
I'm a step on solving this)
m_pView = (BYTE*)MapViewOfFile(m_hMap, FILE_MAP_WRITE, 0, 0, 0);
if (m_pView == NULL)
{ *pdwResult = FSUIPC_ERR_VIEW;
FSUIPC_Close();
return FALSE;
}
[EMAIL PROTECTED] escribió:
On Jul 19, 2006, at 20:46 UTC, Rafael Vallejo wrote:
Actually yes I have a valid reason, I have to interact with an externall
aplication that makes use of Interprocess to comuticate, actually the
information between aplications is copied to and from via copymemory
calls to windows32 api so basically them shares a portion of memory, so
I need to point to that memory address and increment that adress in
order to access to it.
Then you need to use a MemoryBlock. A MemoryBlock of size 0 can point to any
address, and does no bounds checking, so you can use it for things like this --
of course you can shoot yourself in the foot with it, too.
Best,
- Joe
--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com/
_______________________________________________
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>