dcsimg
Example needed for memory mapped files between Java 1.4 and C++ program on Windows NT
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Peter_Chrastek
Posted On:   Monday, April 1, 2002 02:05 PM

Does anybody have an example of how to open a memory resident file mapped section created by a VC++ using the nio memorymapped buffers?

What filename does one use in java?


As an example in VC++ for the mem map name "MYMAP":


			

hImage = CreateFileMapping((HANDLE)
0xffffffff, //memory resident only
(LPSECURITY_ATTRIBUTES)&m_sa,
PAGE_READWRITE,
0,
dwImageSize,
"MYMAP");

if(hImage)
pImage = (UCHAR *)MapViewOfFile(hImage,FILE_MAP_ALL_ACCESS,0,0,0);

About | Sitemap | Contact