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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. convert unicode?

convert unicode?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 Posters 1 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.
  • R Offline
    R Offline
    raghuji rao
    wrote on last edited by
    #1

    how to convert my program to unicode

    T K 2 Replies Last reply
    0
    • R raghuji rao

      how to convert my program to unicode

      T Offline
      T Offline
      Taka Muraoka
      wrote on last edited by
      #2

      Lots of stuff here[^].


      0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall. Awasu 2.2.2 [^]: A free RSS/Atom feed reader with support for Code Project.

      1 Reply Last reply
      0
      • R raghuji rao

        how to convert my program to unicode

        K Offline
        K Offline
        knoxplusplus
        wrote on last edited by
        #3

        Hi !!! There are few rules: 1. you have to define _UNICODE, if you have precompiled headers file, define this there 2. you have to use _T("some text") macro for strings instead of "some text" 3. you have to use TCHAR instead of char 4. for console input/output you must use wcin , wcout, wcerr instead of cin, cout, cerr 5. you have to use std::string class with TCHAR instead of char You can do this: typedef std::basic_string string; I hope I helped you ! By !!! -:KNOX:-:cool:

        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