How can i open and display the image(like jpg, tiff, bmp files) by opening through FileDialog;
Printable View
How can i open and display the image(like jpg, tiff, bmp files) by opening through FileDialog;
CString filename;
TCHAR szFilters[] = _T("bmp files (*.bmp)");
CFileDialog dlg(TRUE,_T("bmp"), _T("*.bmp"),OFN_FILEMUSTEXIST,szFilters);
if (dlg.DoModal () == IDOK)
{
filename = dlg.GetPathName ();
}
this code display only bmp files u can add to other files also into szFilters.
Don't forget to rate
Guna
in order to display the image look here:
Cheers