On Monday 06 October 2008 08:57:59, Vincent R. wrote: > _get_osfhandle : I wrote an article about this topic : > http://www.smartmobili.com/index.php?option=com_content&task=view&id=20&Itemid=42 > Basically I show how to retrieve the underlying file handle (HANDLE) from a > file descriptor
Why are these hoops needed at all? There are no file descriptors on WinCE, so the fileno/_fileno function returns a HANDLE in disguise on CE. This should work: HANDLE h = (HANDLE)fileno (foo); And this: #define _get_osfhandle (FILDES) \ ((HANDLE) (FILDES)) Doesn't it? -- Pedro Alves ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel