Dynamic calculation of resource IDs

Hello all...
I frequently run into the situation where I have a series of resources, cells of animation for instance, that I need to load into an array. The resources might be named:
GFX_PLAYER_CELL_1
GFX_PLAYER_CELL_2
...and so on. I usually wind up writing code like this (this is for GapiDraw, but ignore that fact, it's still a generic question)...
pPlayer[0]->CreateSurface(NULL, hInst, GFX_PLAYER_CELL_1, TEXT("GRAPHICS"));
pPlayer[1]->CreateSurface(NULL, hInst, GFX_PLAYER_CELL_2, TEXT("GRAPHICS"));
...and so on for all the cells of animation. Here's my question... is there any way to dynamically get the resourceID (GFX_PLAYER_CELL_x) instead of hardcoding it?
I know I could find the resourceID of the first cell and just add one for each subsequent cell, but that will only work if the resources are numbered sequentially, which they might usually be, but I can't assume VC++ will do that, and I don't want to be renumbering them myself each time I add or change something.
Any ideas? Sure, they could be external files, then I could construct the filename dynamically no problem, and I may in fact do that later on, but for development it's usually easier if they are resources, then there's just one file to toss from desktop to PPC to test.
Thanks all!
I frequently run into the situation where I have a series of resources, cells of animation for instance, that I need to load into an array. The resources might be named:
GFX_PLAYER_CELL_1
GFX_PLAYER_CELL_2
...and so on. I usually wind up writing code like this (this is for GapiDraw, but ignore that fact, it's still a generic question)...
pPlayer[0]->CreateSurface(NULL, hInst, GFX_PLAYER_CELL_1, TEXT("GRAPHICS"));
pPlayer[1]->CreateSurface(NULL, hInst, GFX_PLAYER_CELL_2, TEXT("GRAPHICS"));
...and so on for all the cells of animation. Here's my question... is there any way to dynamically get the resourceID (GFX_PLAYER_CELL_x) instead of hardcoding it?
I know I could find the resourceID of the first cell and just add one for each subsequent cell, but that will only work if the resources are numbered sequentially, which they might usually be, but I can't assume VC++ will do that, and I don't want to be renumbering them myself each time I add or change something.
Any ideas? Sure, they could be external files, then I could construct the filename dynamically no problem, and I may in fact do that later on, but for development it's usually easier if they are resources, then there's just one file to toss from desktop to PPC to test.
Thanks all!