Click to See Complete Forum and Search --> : how to display jpeg files in windows program?


June 28th, 1999, 06:16 PM
Hi,

I'm trying to open jpeg files in my program (visual c++ with MFC), how do I go about doing that? Any suggestions and tips greatly appreciated.

thanks!

shellreef
June 28th, 1999, 07:22 PM
You would have to use a library or write your own code to read JPEG files. There's a link to a image library on CodeGuru.

As for opening them, use the CFileDialog class:

CFileDialog dlg(TRUE); // True means open
dlg.DoModal();
AfxMessageBox("You selected " + (CString)dlg.m_pszFileName);




-shellreef

Dmitriy
June 28th, 1999, 08:13 PM
See library on www.jpeg.org It works!