Resource identifiers can be either strings or numbers. To make life a bit easier for outputting these beasts (and to help you avoid the need to build the message in memory), I introduced a new function called debugres.
The function is defined in wine/debug.h and has the following prototype:
LPSTR debugres(const void *id); |
It takes a pointer to the resource id and returns a nicely formatted string of the identifier (which can be a string or a number, depending on the value of the high word). Numbers are formatted as such:
#xxxx |
while strings as:
'some-string' |
Simply use it in your code like this:
#include "wine/debug.h" ... TRACE("resource is %s", debugres(myresource)); |