MSDN is consistent in stating that the return value of _fileno is an
int, but MSDN has been known to be wrong. I have the impression that
this is deliberate in some occasions.

But Pedro once wrote this :

On Wed, 2008-02-13 at 09:06 +0000, Pedro Alves wrote:
> Remember that a file descriptor in Windows CE is really a handle.
> While
> on desktop Windows, you need this, to get at the win32 file handle:
> 
>   FILE *f = fopen (...);
>   HANDLE h = (HANDLE)_get_osfhandle (_fileno (f));
> 
> On Windows CE, you can do this directly:
> 
>   FILE *f = fopen (...);
>   HANDLE h = (HANDLE) _fileno (f);

I'll try changing the definition of fileno to void *, we'll see what
breaks :-)

        Danny

On Mon, 2009-05-18 at 12:04 +0200, Johnny Willemsen wrote:
> Hi,
> 
> > Hmm, confusing stuff.
> 
> Yes, it is ;-)
> 
> > On http://msdn.microsoft.com/en-us/library/ms860492.aspx you'll find
> > that _fileno returns an int value. I believe that _fileno and fileno
> > are
> > the same, but I may be mistaken.
> > 
> > MSDN also mentions that _fileno is ISO C++ conformant, and fileno is
> > deprecated.
> 
> Yes, but also _fileno returns void* with msvc windows ce
> 
> > Not sure what to do with this.
> > 
> > Opinions anyone ?
> 
> This is one of the differences between regular Windows and CE (there are
> more). I would say mimic the behavior of msvc wince, not the behavior of
> msvc regular windows, so let the methods return void*
> 
> Johnny
> 
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables 
> unlimited royalty-free distribution of the report engine 
> for externally facing server and web deployment. 
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Cegcc-devel mailing list
> Cegcc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cegcc-devel
> 
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to