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

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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