1

I've written a fair bit of Win32 desktop apps as hobby projects throughout my career but I've never used resources of the type string table in any of them; usually I either hard-code strings or build them through environment variables to determine paths and drive letters etc.

In what situations might I want to use a string table instead of string constants when designing a Windows program?

asked Mar 31, 2016 at 19:22
2
  • 1
    I can't think of any time that I've used them directly. For internationalization I prefer external dictionary files so that translations and new languages can be added without altering the executable. (your compiler though may be converting your hard coded strings into resources behind the scene) Commented Mar 31, 2016 at 19:55
  • @GrandmasterB: I believe, but am not 100% sure, you can achieve that with ResourceDlls. Commented Mar 31, 2016 at 21:28

1 Answer 1

2

They come in most useful when you are going to ship a multi-lingual version of your software. When doing that, the LoadString() calls makes dealing with the language abstracted away.

When doing drive paths and letters its less useful, but when you need to write either "Cancel" or "Abbrechen" on your cancel button, that's where it matters.

answered Mar 31, 2016 at 19:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.