Sign in to follow this  

Character-set question

This topic is 2791 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to write a D3D game that uses alot of text, string concatenating in particular. The SDK says it's best to use unicode, but char arrays and LPCWSTR's can be a pain for a beginner like me. Multi-byte allows me to concat std::strings with +, which makes the code alot easier to read and write. Is there a big performance difference between the two? Does it really make that much of a difference which character-set is used?

Share this post


Link to post
Share on other sites
For unicode string objects, you can use std::wstring. string and wstring are specific instantiations of basic_string with char and wchar_t types, so they both have the same functionality.

Share this post


Link to post
Share on other sites

This topic is 2791 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this