Hi I wanted to put a texture on a cube, so I used this:

My load function:


void LoadTEX()
{
unsigned int texture;
HBITMAP GLtex;
BITMAP tex;