For example, I am updating an old project and I am wondering can I CTRL+H and replace all tstring with wstring? Is this ok? Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
tstring is just a typedef based upon whether the build is unicode or not. It will translate to wstring if the build unicode or simple string if it is not. So if your build will always be unicode then you can replace all the instances of tstring with wstring.