Hello all.
I was told by someone I should convert my project to use Unicode, right now it is using Multi-Byte Char Set.
I was wondering how will it benefit me (it will take quite long time due to the project's size) to do so.
Also I was wondering where should I use wstring and where should I use a normal string if I convert the project. For example right now I store path for files and character names as string, should I convert them all to wstring?
I know that directx load/save from/to file takes string in multi-byte but will take a wstring if I change to unicode so logically I should use wstring there, but then all my loading/saving of actors names and models file path will be affected too, how do I handle saving of a wstring to file? is it just like saving a string? do I need to use a different class instead of the usual fstream? ps I am using binary (as in, out.write(char*(&myData), sizeof(myData); for streaming, not the ">>" operator.
I was told by someone I should convert my project to use Unicode, right now it is using Multi-Byte Char Set.
I was wondering how will it benefit me (it will take quite long time due to the project's size) to do so.
Also I was wondering where should I use wstring and where should I use a normal string if I convert the project. For example right now I store path for files and character names as string, should I convert them all to wstring?
I know that directx load/save from/to file takes string in multi-byte but will take a wstring if I change to unicode so logically I should use wstring there, but then all my loading/saving of actors names and models file path will be affected too, how do I handle saving of a wstring to file? is it just like saving a string? do I need to use a different class instead of the usual fstream? ps I am using binary (as in, out.write(char*(&myData), sizeof(myData); for streaming, not the ">>" operator.
The post was edited 1 time, last by Shanee ().