Can u tell the directory path of how you placed ?

also do you have the necessary qjpeg4.dll ?? May be you dont have release version of the jpeg and only debug one..qjpegd4.dll