Kevin Koltzau kevin@plop.org writes:
I guess I'd probably need to define each string beforehand like WCHAR szString[] = {'S','T','R','I','N','G','\0'}; and use that in the map, but before I undergo that large task I would like to verify thats the best way
Either that, or you can declare a fixed-size array directly in the map structure and avoid the pointer indirection. It wastes a few bytes for short strings, but it saves some relocations, so it may be worth it if the longest string you have to store is not too long.