Avoid (re-)allocations when searching for named resources.

Also add tests to load resources by name.
This commit is contained in:
Joachim Bauch
2015-08-23 00:22:42 +02:00
parent 8d5dbf39e8
commit d19707369a
3 changed files with 174 additions and 19 deletions
+24
View File
@@ -32,3 +32,27 @@ STRINGTABLE
IDS_HELLO, "Hello"
IDS_WORLD, "World!"
}
STRINGRES RCDATA
{
"This is a ANSI string\0",
L"This is a UNICODE string\0",
}
STRINGRES1 RCDATA
{
"This is ANSI string 1\0",
L"This is UNICODE string 1\0",
}
STRINGRES2 RCDATA
{
"This is ANSI string 2\0",
L"This is UNICODE string 2\0",
}
STRINGRES3 RCDATA
{
"This is ANSI string 3\0",
L"This is UNICODE string 3\0",
}