I need a routine to convert a .bmp file to a .jpg file. I don't want to (nor am I able) to link in any libraries to do this (because I know there are libraries out there to do this). I need the raw C++ code to do the entire conversion without the use of any libraries.