Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C++/CLI C MFC ATL WTL STL
Hi

I want to add wide char support to my software. If I do this, I will need to change a lot of code. If the software is changed to wide char, does this wide char software can handle ANSI char as it used to be?

Is there any advice or good experience?

Thanks,
Posted 15-May-09 8:32am
transoft2.5K
Edited 20-Jan-11 18:13pm
Yusuf40K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

See [^].
Smile | :)

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I am not sure what do you mean by "handle" ANSI char. Note that everything is represented as Unicode, in an application that is built for Unicode. There is a two part article at CP, that you might want to read:
The Complete Guide to C++ Strings, Part I - Win32 Character Encodings[^]
The Complete Guide to C++ Strings, Part II - String Wrapper Classes[^]

Also, if you write an application in ANSI, Windows will still have to convert everything to Unicode internally to work with it. So, theoretically your application must be faster if it is built for Unicode.

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 445
1 Sergey Alexandrovich Kryukov 322
2 Maciej Los 275
3 CHill60 195
4 King Fisher 179
0 OriginalGriff 240
1 Maciej Los 95
2 Sascha Lefévre 85
3 King Fisher 70
4 F-ES Sitecore 55


Advertise | Privacy | Mobile
Web01 | 2.8.150331.1 | Last Updated 20 Jan 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100