VC++6?

Hmm....

Download the Intel JPEG library and use it to decode the JPEG.
Or maybe you can download GDI+ for VC++6, don't know.