I am trying to load jpg images using IImageFactory, using the sample code provided under the name Imaging.
I am using Visual C++ platform.
But the problem is that i am unable to load images other than flower.jpg.
I even copied other images to the Imaging folder and tried to load them but it did not work.
i tried "\\program files\\imaging\\flower2.jpg"
When i set the path for other images again it is not able to load.
eg:"C:\\Documents and Settings\\asd\\Desktop\\paper.jpg"
// Create the imaging factory.
if (SUCCEEDED(CoCreateInstance (CLSID_ImagingFactory,
// Load the image from the JPG file.
// TEXT("\\program files\\imaging\\flower.jpg"),
TEXT("C:\\Documents and Settings\\asd\\Desktop\\paper.jpg"), &pImage)))
// Draw the image.
pImage->Draw(hdc, &rc2, NULL);
Please help to solve this issue.