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 controls for ANSI Build

Unicode controls for ANSI Build

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
3 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.
  • N Offline
    N Offline
    Neville Franks
    wrote on last edited by
    #1

    I've got an app created as an ANSI Build and want to use a few controls such as an Edit control (CEdit) as Unicode, if running on Win2K or later. I don't want to build the app as Unicode at this time, as I want to support W98 and don't want to have to use the MS W98 Unicode Layer. I've pretty much spent the day Google'ing and reading and it seems doable, but I've yet to find any concrete info on how. One idea is to provide my own implementation of CWnd::CreateEx() that calls CreateWindowExW() if we are running on W2K/XP etc. but I suspect there is more to it than that. Has anyone done this or have any suggestions? Mucho thanks in advance. Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

    C 1 Reply Last reply
    0
    • N Neville Franks

      I've got an app created as an ANSI Build and want to use a few controls such as an Edit control (CEdit) as Unicode, if running on Win2K or later. I don't want to build the app as Unicode at this time, as I want to support W98 and don't want to have to use the MS W98 Unicode Layer. I've pretty much spent the day Google'ing and reading and it seems doable, but I've yet to find any concrete info on how. One idea is to provide my own implementation of CWnd::CreateEx() that calls CreateWindowExW() if we are running on W2K/XP etc. but I suspect there is more to it than that. Has anyone done this or have any suggestions? Mucho thanks in advance. Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

      C Offline
      C Offline
      color Aljechin
      wrote on last edited by
      #2

      If the app itself is unicode unaware, then how do you expect a child window of the app to handle unicode? You will have to do a unicode build to make the app work with unicode as far as I know.

      Neville Franks wrote:

      it seems doable

      In case if you did it, please post a reply here and I am very much interested to know how it is. :rose:

      N 1 Reply Last reply
      0
      • C color Aljechin

        If the app itself is unicode unaware, then how do you expect a child window of the app to handle unicode? You will have to do a unicode build to make the app work with unicode as far as I know.

        Neville Franks wrote:

        it seems doable

        In case if you did it, please post a reply here and I am very much interested to know how it is. :rose:

        N Offline
        N Offline
        Neville Franks
        wrote on last edited by
        #3

        Aljechin wrote:

        If the app itself is unicode unaware, then how do you expect a child window of the app to handle unicode? You will have to do a unicode build to make the app work with unicode as far as I know.

        It is defintely doable. I just have worked out precisely how yet. In the early days of Windows NT MS suggested this approach so you could create a single exe to support W9x and NT. Here is some reading for you: http://www.microsoft.com/msj/0499/multilangunicode/multilangunicode.aspx[^] http://groups.google.com/group/microsoft.public.win32.programmer.international/tree/browse_frm/thread/f6d20df6e32dd033/25f27a4dffbd9603?rnum=11&hl=en&q=Using+Unicode+in+an+MFC+Ansi+App&_done=%2Fgroup%2Fmicrosoft.public.win32.programmer.international%2Fbrowse_frm%2Fthread%2Ff6d20df6e32dd033%2F06bdd51672de1c19%3Flnk%3Dst%26q%3DUsing+Unicode+in+an+MFC+Ansi+App%26rnum%3D8%26hl%3Den%26#doc_c83c4437a4e57c27[^] and there is plenty more. Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

        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