Hi,

According to MSDN, MapViewOfFile should be

LPVOID MapViewOfFile(
  HANDLE hFileMappingObject,
  DWORD dwDesiredAccess,
  DWORD dwFileOffsetHigh,
  DWORD dwFileOffsetLow,
  SIZE_T dwNumberOfBytesToMap
);

I have some code which looks like this

dataView = MapViewOfFile(dataMap, FILE_MAP_WRITE, 0, 0, (UIntPtr)BUFFERLEN);

This won't compile (can't convert from int to System.UIntPtr). As I
understand it though, if I remove (UIntPtr) from before BUFFERLEN, this
should then happily compile. However, it doesn't. 

dataMap is an IntPtr

Is this something that needs to go into Bugzilla?

TTFN

Paul
-- 
"Logic, my dear Zoe, is merely the ability to be wrong with authority" -
Dr Who

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to