Skip to main content
GameDev.net gamedev.net
🔒 Locked

win32 - Purpose of string table?

Started by nuclear123 Oct 30, 2011 at 1:17 AM 1 replies 1.5k views
Original Post
nuclear123
nuclear123
Can anyone explain the purpose of the string table when programming a win32 application?
AverageMidget
AverageMidget
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.
dpadam450
dpadam450
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.
NBA2K, Madden, Maneater, Killing Floor, Sims 

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.