C++ win32 loading strings from resource - Stack Overflow
https://stackoverflow.com/questions/6075138/c-win32-loading-strings-from-resource
WEBMay 20, 2011 · Rather than defining global variables for your strings, consider writing a function that loads a resource string, makes a copy of it, and returns that copy. That is: char * LoadStringFromResource(uint id) {. // szBuffer is a globally pre-defined buffer of some maximum length. LoadString(ghInst, id, szBuffer, bufferSize);
DA: 3 PA: 26 MOZ Rank: 59