79359329

Date: 2025-01-15 18:34:22
Score: 2
Natty:
Report link

Remy's suggestion that I answer the question is good, I will try here:

By changing from IDC_STATIC to a control I generated named IDS_VERSION I could then define the string.

In the About window I used this code:

LoadStringW(hInst, IDS_VERSION, szVerW, MAX_LOADSTRING);
SetDlgItemText(hDlg, IDS_VERSION, szVerW);

For use in the logfile I used this code:

LoadStringA(hInstance, IDS_VERSION, szVersion, MAX_LOADSTRING);

Once done, I could extract the same string for my log file and use it in the about dialog.

Thanks to all, -Tom

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tom