CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: CString

Threaded View

  1. #1
    Join Date
    Aug 2003
    Posts
    20

    CString

    Hi all

    CString aStr="¤¤¤å"; //receive a Chinese sentence
    int aLength=aStr.Length(); //it returns 4, why not 2

    I need to work on strings character by character, so i assign each word to a "UINT" data type

    for(int i=0;i<=aLenght;i++)
    {
    UINT a = aStr.GetAt(i); // can not assign a Chinese Char to UINT
    ...................
    }

    how can i get a chinese character from a CString?
    Last edited by wow9999; September 16th, 2003 at 04:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured