Is there any good example code with explanation for loading BMP file for texturing using C++ ?
I tried to take a look at Nehe.gamedev.net and they are using some old GLAUX.h which does not exist any more and one of the other video tutorial website does not show how they loaded the bmp files they just showed how to apply loaded bmp file for texturing.
I would suggest using a pre-existing library, such as SDL for this kind of thing.
But if you really want to do it yourself, this was the first result on google: http://www.vbforums.com/showthread.php?t=261522
If you know the width and height of the image, you can create an opengl texture using the bitmapImage as the image data, but that may not work, I haven’t tested it.