loading a jpeg in mfc

hi . i have an mfc application, in which i want to load a jpeg which will be created at run-time, at a pre-determined location on the hdd. sounds simple. i assumed i would have to instantiate an image object, get a stream on the jpeg file, and pass that stream to the image object, and finally do something like
dc.selectobject(image object), where dc is the device context.

but i am not able to find something quite like that or any examples.i m a novice in mfc, so if anyone can help me out with this seemingly simple problem, that would be great.

i am not using any forms, so i can use the designer view or something . the best lead i have so far is trying to use IPicture, but i can find any samples for that too.

[728 byte] By [vishal1857] at [2007-12-16]
# 1
Use IPicture.
Read this article:
http://msdn.microsoft.com/msdnmag/issues/01/10/c/default.aspx
MartinRichter at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2
You can use the CImage class. It is introduced in MFC7.0, or GDI+ in platform SDK. See Platform SDK documentation for more details.
jiangsheng at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...