The CString Class - 4

Loading STRINGTABLE values

2025-12-03

Written by: xiaobin

You need to change the language settings!

Language set

Open resource view;

Click “String Table” and change the language attribute:

Chinese (Simplified, PRC)

string table - p.r.c

Loading STRINGTABLE value

void CTextView::AssertValid() const
{
    CEditView::AssertValid();

    CString fmt;

    fmt.LoadString(IDS_STRING1);
    GetEditCtrl().SetWindowText(fmt);
}

Ref