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. wchar_t to char

wchar_t to char

Scheduled Pinned Locked Moved C / C++ / MFC
data-structurestutorialquestion
6 Posts 6 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.
  • B Offline
    B Offline
    big_denny_200
    wrote on last edited by
    #1

    Hello again :) In Unicode build,how to convert a TCHAR array to array of char -s ? thanks

    T A 2 Replies Last reply
    0
    • B big_denny_200

      Hello again :) In Unicode build,how to convert a TCHAR array to array of char -s ? thanks

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      W2C() macro...


      TOXCCT >>> GEII power

      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

      M 1 Reply Last reply
      0
      • T toxcct

        W2C() macro...


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        M Offline
        M Offline
        Maxwell Chen
        wrote on last edited by
        #3

        I thought there might be the API UnicodeToAscii, but not for C++ / MFC ...


        Maxwell Chen

        N 1 Reply Last reply
        0
        • B big_denny_200

          Hello again :) In Unicode build,how to convert a TCHAR array to array of char -s ? thanks

          A Offline
          A Offline
          Amar Sutar
          wrote on last edited by
          #4

          use WideCharToMultiByte Amar:)

          1 Reply Last reply
          0
          • M Maxwell Chen

            I thought there might be the API UnicodeToAscii, but not for C++ / MFC ...


            Maxwell Chen

            N Offline
            N Offline
            Nibu babu thomas
            wrote on last edited by
            #5

            Maxwell Chen wrote:

            I thought there might be the API UnicodeToAscii, but not for C++ / MFC ...

            There is are classes CW2A, CA2W.


            Nibu thomas A Developer Programming tips[^]  My site[^]

            D 1 Reply Last reply
            0
            • N Nibu babu thomas

              Maxwell Chen wrote:

              I thought there might be the API UnicodeToAscii, but not for C++ / MFC ...

              There is are classes CW2A, CA2W.


              Nibu thomas A Developer Programming tips[^]  My site[^]

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Nibu thomas wrote:

              There is are classes CW2A, CA2W.

              You forgot to mention that these are ATL macros.


              "The largest fire starts but with the smallest spark." - David Crow

              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