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:
http://www.imagelib.org

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 … http://codeguru.earthweb.com/opengl/snaptojpeg.shtml

I found one here
http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg2.htm

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