On Sun, Jun 8, 2008 at 8:37 AM, Vincent Torri <[EMAIL PROTECTED]> wrote: [...] > CreateFileMapping returns the error 6 "The handle is invalid." If I use
The problem is most probably in the get_osfhandle() function. Use the Win32 CreateFile() function instead of fopen() to get the file handle. > PAGE_READWRITE, I get the error 5 "Access is denied." This is as expected, as you have opened the file only for reading. > Does someone know if CreateFileMapping() is working with cegcc ? And if > it is working, what is wrong in my code ? I never had any problem with CreateFileMapping() in WinCE, but never used get_osfhandle() for this kind of things (had problems with it in the Win9x days and never used it again). Regards, ~Nuno Lucas ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel