Using JPEG library to read/write images on Windows - instruction and sample programs:
  1. Download jconfig.h, jmorecfg.h, jpeglib.h, jpeg.lib, jpeg2jpeg.c, testimg.jpg and save in the same directory.
  2. Double click on jpeg2jpeg.c to launch Microsoft Visual C++.
  3. From Projection->Setting->Link, add jpeg.lib in Object/library modules.
  4. Press Ctrl+F5 to compile and run.
Note: