Sign in to follow this  
majek

Character-set question

Recommended Posts

majek    115
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
Ignifex    520
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

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