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. What is the defference about _T("abc") and "abc"?

What is the defference about _T("abc") and "abc"?

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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.
  • F Offline
    F Offline
    freehawk
    wrote on last edited by
    #1

    Hello everyone What is the defference about _T("abc") and "abc"? Thank you. -Freehawk

    P R 2 Replies Last reply
    0
    • F freehawk

      Hello everyone What is the defference about _T("abc") and "abc"? Thank you. -Freehawk

      P Offline
      P Offline
      Pharago
      wrote on last edited by
      #2

      _T("abc") translate "abc" to unicode on unicode builds and remain "abc" on non unicode builds, see tchar.h hope that helps, regards

      1 Reply Last reply
      0
      • F freehawk

        Hello everyone What is the defference about _T("abc") and "abc"? Thank you. -Freehawk

        R Offline
        R Offline
        RChin
        wrote on last edited by
        #3

        As well as the above reply, you can also read this[^] article for a more detailed explanation (and other vital info on strings).


        I Dream of Absolute Zero

        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