It's actually pretty simple (for texturing). You need to know which limb you want to texture with what texture. The easiest way is through trial and error if you are working with only a few objects.
dbTextureLimb ( int iObject, int iLimb, int iImage );
simply rotate through the "iLimb" and figure out what image goes with what limb. Keep track of the info and put it into your code. Don't worry, each time you load that object, the limb assignments will be the same unless you change something.
Alternatively, you can look for the limb name and match it with a texture using dbLimbName( int iObject, int iLimb):
int L=1;
while (dbLimbExist(Obj,L)==1){
char * LimbName=dbLimbName(Obj, L);
if (strcmp(LimbName,"Head")==0) dbTextureLimb(Obj,L,Tex1);
L++;
}
3DSMax lets you name the limbs. I don't know what other 3D editors do.....
The fastest code is the code never written.