How to retrieve the name of a resource?

Hello!

Have many .WAV files, which I included into the C++ resources.
The defines in Resource.h uses number in series,
so It is possible to load the resources in a for loop.

But what to do with them, I want to distinguish with
the name of the resource e.g. IDI_CLICKWAVE_A for playing the letter A.

To program it consequently, I need the name of the resource in runtime.

Is it possible?

Thanks for tips

Erhy
The name of that resource doesn't exist, even at compile time it's a text representation of a number so think of it almost like you would an enumeration.

It sounds like what you want is an std::map : http://www.cplusplus.com/reference/map/map/
This will allow you to correlate the char input with the numerical ID.
so I created the specific text for .rc and resource.h with own software.
It's not a amused occupation but it seems necessary.
Erhy
Topic archived. No new replies allowed.