1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CFile write unicode text in wince

Discussion in 'MFC' started by sunny_a42000@yahoo.com, Sep 2, 2010.

  1. sunny_a42000@yahoo.com

    sunny_a42000@yahoo.com 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