Hello everyone,
I see that many people have posted threads about using CPictureHolder and none of them have helped me. I would like to use this class to load a jpg from a file path and display it on my dialog. I have been trying to use the extended class that was created by someone here on codeguru and was put in an article:
"http://www.codeguru.com/cpp/g-m/multimedia/imaging/article.php/c1589"
Code:HDC hdc;
CDC* pDC = GetDC();
CPictureHolderEx pict;
pict.CreateFromFile(userFileName);
pict.Render(pDC, CRect(10,10,100,100),CRect(9,9,110,110));
1>c:\2.7\sample\vc\cameracontrol\command\downloadcommand.h(137) : error C2660: 'GetDC' : function does not take 0 arguments
1>c:\2.7\sample\vc\cameracontrol\command\downloadcommand.h(139) : error C2039: 'CreateFromFile' : is not a member of 'CPictureHolderEx'
These are the two errors I have been receiving. Am I correct in thinking it is possible to load an image from a file path with this class? Can anyone offer any guidance please really need to display an image from a filepath have been trying for a week and a half now and failing.

