could you please teach me how to use visual c++ read the pixels from a bitmap image into program array(or some parameter)??
What do you mean with bitmap ? if you mean a windows bitmap image (bmp/dib) then you can find tons of this on google, this is not related to opengl so don’t expect to find anything about it here.
If you want to read data from the opengl framebuffer you can use glReadPixels.