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. Mixing Unicode and Non Unicode CEdit, CWnd

Mixing Unicode and Non Unicode CEdit, CWnd

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiocsharpquestion
4 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.
  • N Offline
    N Offline
    Nawal K Gupta
    wrote on last edited by
    #1

    Hi All, 1. We have created a dialog with unicode compilation. In this we have some text boxes or other controls where we don't want to allow to enter any non-english charaters. Can there is some easy way to set the flag for CEdit, so that it won't allow to enter any non english characters. I don't want to override (MaskEdit) the CEdit. In MBCS build we are able to type only English chars. Non english is converted to ????. How Windows is managing this Non unicode and unicode windows? 2. Is the support for _MBCS is removed from the Visual Studio 2005. In non unicode (MBCS) build, in Visual Studio 98, we were able to type the unicode characters, but this seems not to be working with VS 2005 Indian Idol

    K W 2 Replies Last reply
    0
    • N Nawal K Gupta

      Hi All, 1. We have created a dialog with unicode compilation. In this we have some text boxes or other controls where we don't want to allow to enter any non-english charaters. Can there is some easy way to set the flag for CEdit, so that it won't allow to enter any non english characters. I don't want to override (MaskEdit) the CEdit. In MBCS build we are able to type only English chars. Non english is converted to ????. How Windows is managing this Non unicode and unicode windows? 2. Is the support for _MBCS is removed from the Visual Studio 2005. In non unicode (MBCS) build, in Visual Studio 98, we were able to type the unicode characters, but this seems not to be working with VS 2005 Indian Idol

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      You can filter all unwanted input out. You got to handle ENCHANGE Message of the EDIT Box.

      Greetings from Germany

      1 Reply Last reply
      0
      • N Nawal K Gupta

        Hi All, 1. We have created a dialog with unicode compilation. In this we have some text boxes or other controls where we don't want to allow to enter any non-english charaters. Can there is some easy way to set the flag for CEdit, so that it won't allow to enter any non english characters. I don't want to override (MaskEdit) the CEdit. In MBCS build we are able to type only English chars. Non english is converted to ????. How Windows is managing this Non unicode and unicode windows? 2. Is the support for _MBCS is removed from the Visual Studio 2005. In non unicode (MBCS) build, in Visual Studio 98, we were able to type the unicode characters, but this seems not to be working with VS 2005 Indian Idol

        W Offline
        W Offline
        Waldermort
        wrote on last edited by
        #3

        By default VS2005 new projects are set to UNICODE, you need to change this in the project settings for MBCS. The reason for you not being able to see non english characters is probably due to a local setting. Without seeing any code there is not much else I can say to help you.

        N 1 Reply Last reply
        0
        • W Waldermort

          By default VS2005 new projects are set to UNICODE, you need to change this in the project settings for MBCS. The reason for you not being able to see non english characters is probably due to a local setting. Without seeing any code there is not much else I can say to help you.

          N Offline
          N Offline
          Nawal K Gupta
          wrote on last edited by
          #4

          I want a unicode version and in same dialog Some Edit Boxes shd be unicode enabled and some edit boxed shd be unicode disabled

          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