Click here to Skip to main content
15,867,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've got an MFC project which is 20 years old and is still in daily use. While updating it to VS2015 I started getting warnings that MBCS is now deprecated and will be removed at some unspecified future date, so clearly Unicode Is The Future™.

We've got thousands of saved files containing serialized MBCS CStrings - if I convert the program to Unicode (and hence wide CString), it is still going to have to be able to deserialize them.

Is the easiest way to start the Unicode conversion to set the project to Unicode and convert every CString in the program to a CStringA so it stays with a single-byte representation?
Posted
Comments
Richard MacCutchan 1-Oct-15 7:16am    
That would probably create more problems, and you would still need to convert at some time in the future. It would probably be better to create your own version of the CString class, that can manage the data and automatically convert to Unicode when the project changes.
hairy_hats 1-Oct-15 11:38am    
I was hoping to avoid too much new coding, but that may be the best way.

It's pretty dire that MS have decided to obsolete it without providing an easy upgrade solution along those lines!
Richard MacCutchan 1-Oct-15 11:43am    
I would suggest before you take any action, you try to clarify things with Microsoft.

1 solution

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900