You can, of course, preload them if you want. You just need to create an array of row pointers and load each row into this array. Or you can use a hash map or something like that.
? . , , . - , , , . , , , , , LoadString.
, , , , . , , , , 256 . - , , , , , , .
:
, , . :
char * LoadStringFromResource(uint id)
{
LoadString(ghInst, id, szBuffer, bufferSize);
return strdup(szBuffer);
}
:
char* errMem = LoadStringFromResource(IDS_ERROR_MEMORY);
char* errText = LoadStringFromResource(IDS_ERROR_TEXT);
MessageBox(NULL, errMem, errText, MB_OK | MB_ICONERROR);
free(errMem);
free(errText);
C, ++. , , , -, ++ - , , ( , ).