c++ - Why LoadString returns the concatenated strings from …
https://stackoverflow.com/questions/33264083/why-loadstring-returns-the-concatenated-strings-from-the-resources
WEBOct 21, 2015 · int i = LoadString(h, id, (PTSTR)&ptr, 0); if (0 == i) { return NULL; } PTSTR string = (PTSTR)malloc((i + 1) * sizeof(TCHAR)); LoadString(h, id, string, i + 1); return string; // don't forget free resource in the outer code. } The strings in the resources are not separated through the \0 char as I expected.
DA: 72 PA: 76 MOZ Rank: 100