On Sun, 8 Jun 2008, Nuno Lucas wrote:
> 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. actually, I can't. As I *have to* simulate mmap, i just have the file descriptor of the file, its size, and other parameters. So I can't use CreateFile. > 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). As I said in my previous mail, there is maybe a problem with windows ce < 5.0 Vincent Torri ------------------------------------------------------------------------- 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