-With only two user functions LoadGfxFile : should be used once for every file at the beginning.Loads portable executable file specific properties as file directory,Resource directory file address ,Resource section address and Resource section RVA. Get_Bit_Map : retrieves a bitmap by looping through the bitmap resource directory using the above properties.Id is the same you get from resource hacker.
Errors should be handled as required and can be found next to "//[Error to be handled]".
EDIT : WOW, i have got an error loading bpp : 8 images only , i will fix it immediately.
EDIT 2 : Fixed loads of errors and cleaned the code and last check then reupload.