Jpeg with VC++ and OpenGL

Can anyone tell me how to load a jpeg image for use it with OGL (texture). I am programming with VC++ 6.0

You can download a JPEG library here .

I have the libraries but i dont know how to use it to load a jpeg and then use it as a tecture in OGL

or you could use DevIL, found at:

you can load more than .jpgs with it…

Intel Jpeg Library rocks for Win32 … you can see where to get it and how to use it here …

I found one here

FYI, Intel’s JPEG library is no longer free… costs US$199. Gag.