Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. I have a problem with Cyrillic Characters in C++ MFC (Visual Studio 6)

I have a problem with Cyrillic Characters in C++ MFC (Visual Studio 6)

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiohelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    micutzu
    wrote on last edited by
    #1

    Hello, I have to customize a old project to work with Cyrillic Characters. I have the following code:

    CString MyText;
    TCHAR buf[512];
    SendMessage(lCurHwnd,WM_GETTEXT,sizeof(buf)/sizeof(TCHAR),(LPARAM)(void*)buf);
    MyText.Format("%s",buf);

    If the buf contains Cyrillic Characters (like Привет) this will be replaced with ??????. Do you know a way to solve this problem? This is my first meeting :) with Cyrillic Characters in a project and I do not know how to correct it. I am using Windows XP, SP2, Visual Studio in English. Thank you!

    C 1 Reply Last reply
    0
    • M micutzu

      Hello, I have to customize a old project to work with Cyrillic Characters. I have the following code:

      CString MyText;
      TCHAR buf[512];
      SendMessage(lCurHwnd,WM_GETTEXT,sizeof(buf)/sizeof(TCHAR),(LPARAM)(void*)buf);
      MyText.Format("%s",buf);

      If the buf contains Cyrillic Characters (like Привет) this will be replaced with ??????. Do you know a way to solve this problem? This is my first meeting :) with Cyrillic Characters in a project and I do not know how to correct it. I am using Windows XP, SP2, Visual Studio in English. Thank you!

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      You should build for unicode i guess.

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups