CFile write unicode text in wince

Discussion in 'MFC' started by, Sep 2, 2010.

  1. New Member

    Sep 2, 2010
    Likes Received:
    Trophy Points:
    Hello everybody

    I'm trying to write some texts into html file using CFile::Write function. Below is what I'm using.

    mFile.Write(myString,myString.GetLength() * sizeof(TCHAR));

    As a result in the file however I get something like this:
    0 1 : 2 2 : 0 6 . 0 0 T a e o t u i e o e

    This should be written as:
    01:22:06.00 Trace output file open

    Any idea what the problem could be?

    Thanks in advance!

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice