• Advertisement
Sign in to follow this  

win32 - Purpose of string table?

This topic is 2311 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

Advertisement
It's a way to have all your strings in one location. Say you have a bunch of different strings that get displayed to your user (labels, message boxes, etc.). Instead of having them peppered throughout your code, you can put them in a string table and use the LoadString() function in your code, where you wanted the string to appear. If it's practical or not, you can decide. It would, however, come in very handy if you ever wanted to ship your software in other languages, though.

Share this post


Link to post
Share on other sites
Only reason really is for other languages, having them in one spot might help also if a writer decides they want to change something they can maybe find it easier. But imagine going through 20K files trying to find something that needs to be translated or something. Would be a nightmare.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement