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. UNICODE again

UNICODE again

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 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.
  • J Offline
    J Offline
    jancsi
    wrote on last edited by
    #1

    Can somebody post me a link where a UNICODE file is loaded and it's content is displayed on a Dialog? So how to load a UNICODE file ? How to display a UNICODE text on a Dialog? Thanks xxx

    G 1 Reply Last reply
    0
    • J jancsi

      Can somebody post me a link where a UNICODE file is loaded and it's content is displayed on a Dialog? So how to load a UNICODE file ? How to display a UNICODE text on a Dialog? Thanks xxx

      G Offline
      G Offline
      grigsoft
      wrote on last edited by
      #2

      I'm sure there was a class on CP that can load Unicode text, try to search. Underneath, the is no easy way to do it - you simply load portion-by-portion, analyzing content. Unicode file can start with signature (FFFE or FEFF) - this will help to to understand what you have. But it is not required - in this case you will have to try to detect if text is unicode (see ::IsTextUnicode()). As for displaying, it depends on your project - if it is Unicode-enabled, then no problems. Otherwise you will need to convert to plain text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools

      G J 2 Replies Last reply
      0
      • G grigsoft

        I'm sure there was a class on CP that can load Unicode text, try to search. Underneath, the is no easy way to do it - you simply load portion-by-portion, analyzing content. Unicode file can start with signature (FFFE or FEFF) - this will help to to understand what you have. But it is not required - in this case you will have to try to detect if text is unicode (see ::IsTextUnicode()). As for displaying, it depends on your project - if it is Unicode-enabled, then no problems. Otherwise you will need to convert to plain text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools

        G Offline
        G Offline
        grigsoft
        wrote on last edited by
        #3

        Here it is: http://www.codeproject.com/file/stdiofileex.asp Igor Green http://www.grigsoft.com/ - files and folders comparison tools

        1 Reply Last reply
        0
        • G grigsoft

          I'm sure there was a class on CP that can load Unicode text, try to search. Underneath, the is no easy way to do it - you simply load portion-by-portion, analyzing content. Unicode file can start with signature (FFFE or FEFF) - this will help to to understand what you have. But it is not required - in this case you will have to try to detect if text is unicode (see ::IsTextUnicode()). As for displaying, it depends on your project - if it is Unicode-enabled, then no problems. Otherwise you will need to convert to plain text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools

          J Offline
          J Offline
          jancsi
          wrote on last edited by
          #4

          Well thanks, but I also have a problem with displaying the text (_UNICODE is defined on my project). I can display the UNICODE text only with AfxMessageBox , when I try to set a STATIC TEXT control value to that text it does not show it correclty . Also wprintf(...) is not working . xxx

          R 1 Reply Last reply
          0
          • J jancsi

            Well thanks, but I also have a problem with displaying the text (_UNICODE is defined on my project). I can display the UNICODE text only with AfxMessageBox , when I try to set a STATIC TEXT control value to that text it does not show it correclty . Also wprintf(...) is not working . xxx

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

            have a look at this^[^]


            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