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/MBCS compatibility

Unicode/MBCS compatibility

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialannouncement
2 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.
  • D Offline
    D Offline
    DataPrasad
    wrote on last edited by
    #1

    Hello experts, Well,I have a VC++ 6.0 developed application, supporting MBCS, which is the default for VC++ 6.0. Also, let me tell you I am using Windows 2000 platform. Then, I have compiled it with UNICODE MFC dlls and static librarys[ UAFX*.lib and Unicode MFC dlls] and got the UNICODE version of application. Now, my requirement is to develop one single application that can support both Unicode and MBCS[DBCS].... Well, I dont know wehether this is possible, if Possible, please let me know how to go for. Thanks & Regards, Mr Prasad G.

    P 1 Reply Last reply
    0
    • D DataPrasad

      Hello experts, Well,I have a VC++ 6.0 developed application, supporting MBCS, which is the default for VC++ 6.0. Also, let me tell you I am using Windows 2000 platform. Then, I have compiled it with UNICODE MFC dlls and static librarys[ UAFX*.lib and Unicode MFC dlls] and got the UNICODE version of application. Now, my requirement is to develop one single application that can support both Unicode and MBCS[DBCS].... Well, I dont know wehether this is possible, if Possible, please let me know how to go for. Thanks & Regards, Mr Prasad G.

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      While I'm not an expert, I will try to answer your question. Use the TCHAR macro's for all your string manipulations (CString does this) ie. use 'TCHAR' instead of 'char' or 'WCHAR' use '_tcscpy' instead of 'strcpy', '_mbscpy', or 'wcscpy' HTH --- It may be that your sole purpose in life is simply to serve as a warning to others.

      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