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
Yusuf39.9K
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 277
1 Maciej Los 210
2 BillWoodruff 205
3 Jochen Arndt 180
4 Sergey Alexandrovich Kryukov 165
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,650
3 Kornfeld Eliyahu Peter 3,460
4 Sergey Alexandrovich Kryukov 2,811


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 20 Jan 2011
Copyright © CodeProject, 1999-2014
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