Jump to content
  • Advertisement
Sign in to follow this  
majek

Character-set question

This topic is 3009 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!