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!
Printable View
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!
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
See library on www.jpeg.org It works!