|
You can use this class in 2 ways. The simplest is:
Cexif exif;
exif.DecodeExif(hFile);
where hFile is a valid file handle. If the file
contains EXIF data, exif.m_exifinfo->IsExif
is true, and you can read the fields in exif.m_exifinfo
to create a report. The second way is:
EXIFINFO m_exifinfo;
memset(&m_exifinfo,0,sizeof(EXIFINFO));
Cexif exif(&m_exifinfo);
exif.DecodeExif(hFile);
In this case the result is stored in the variable m_exifinfo,
and you can delete the exif object without losing
the EXIF data.
|