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. Switch between Unicode and ANSI

Switch between Unicode and ANSI

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studioquestion
4 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.
  • H Offline
    H Offline
    hyling
    wrote on last edited by
    #1

    Hi, I've got a project where for some reason unicode support is turned on in the code, I've come to this conclusion because it is using the "W" versions of certain functions. I've done a search for #define UNICODE but didn't find in the code. I don't see an option for this in the Visual Studio Preferences either. Is there another way to turn it off? Thanks Hua-Ying

    D 1 Reply Last reply
    0
    • H hyling

      Hi, I've got a project where for some reason unicode support is turned on in the code, I've come to this conclusion because it is using the "W" versions of certain functions. I've done a search for #define UNICODE but didn't find in the code. I don't see an option for this in the Visual Studio Preferences either. Is there another way to turn it off? Thanks Hua-Ying

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

      Did you search for both UNICODE and _UNICODE in the .h, .cpp and .dsp files?


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      H 1 Reply Last reply
      0
      • D David Crow

        Did you search for both UNICODE and _UNICODE in the .h, .cpp and .dsp files?


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        H Offline
        H Offline
        hyling
        wrote on last edited by
        #3

        Yes I searched for both UNICODE and _UNICODE.

        H 1 Reply Last reply
        0
        • H hyling

          Yes I searched for both UNICODE and _UNICODE.

          H Offline
          H Offline
          hyling
          wrote on last edited by
          #4

          I found it!! My project was generated by another program and it set the Preprocessor define UNICODE in the project. So it was in the Project Properites setting under C/C++ > Preprocessor > Preprocessor Definitions. This is the reason it didn't show up when I searched the code for #define UNICODE. Thanks for the help!! Hua-ying

          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