using a structure as a memory-mapped file

Hi: 
I have my own declared structure. That I want to use as a inter-process
shared memory block. I can create th memory mapped file with out a
problem. How do I map a view of this file in to a process. I have the
following code to map curently:
TreeviewInfo =(SATreeviewInfo)MapViewOfFile(HTreeviewMSAAMapFile, NULL,
0, 0, 0);

This gives me compiler eror c2440 and tell me i carn't convert. Anyone
got any ideas?

Chers

Sean.

Other related posts: