fopen and wfopen

This is a discussion on fopen and wfopen within the C Programming forums, part of the General Programming Boards category; Hello everyone, I think for any platform (no matter whether on the platform, multibyte character or wide character is used ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    fopen and wfopen

    Hello everyone,


    I think for any platform (no matter whether on the platform, multibyte character or wide character is used as default encoding approach, for example, on Windows CE wide character is used as default encoding approach, i.e. UNICODE or _UNICODE is defined, and on Windows desktop platform, multibyte character is used as default), I could achieve the same function for any platform by either,

    1. invoking fopen and pass file name encoded as multibyte character, no matter whether multibyte character or wide character is used as default encoding approach;

    2. invoking wfopen and pass file name encoded as wide character, no matter whether multibyte character or wide character is used as default encoding approach.


    thanks in advance,
    George

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    330
    what is your question exactly?

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    Dunno, but it looks similar to the other two posts which are about TCHAR and UNICODE.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21