
Stringtable string in MessageBox
Robert,
Quote:
> Having a stringtable with some strings like TEST, how can I use it in
> MessageBox?
> MessageBox(hdlg, MAKESTRINGFROMSTRINGTABLEINTVALUEMACRO(TEST), "Test",
> MB_OK);
I assume you are not using
MFC (because it's trivial with MFC's
AfxMessageBox()).
What you have to do is load the string yourself using LoadString(). Sort of
like
TCHAR str[1000];
LoadString ( GetModuleHandle ( NULL ), TEST, str, 1000 );
MessageBox ( ....., str, ... );
(add, of course, a proper buffer size and error checking <g>)
--
Tomas Restrepo
http://members.xoom.com/trestrep/