InfoViewPerspective example for C++ 5.0 and later

ILEADRasterIO *pRasterIO=NULL;
   CoCreateInstance(CLSID_LEADRasterIO, NULL,
                    CLSCTX_ALL, IID_ILEADRasterIO,
                    (void**)&pRasterIO);
   pRasterIO->GetFileInfo (m_LEADRasterView1.GetRaster(),
                          "v:\\images\\babe.cmp",
                          1, FILEINFO_TOTALPAGES);
   CString cs;
   cs.Format(TEXT("ViewPerspective:%d\n"), pRasterIO->GetInfoViewPerspective ());
   AfxMessageBox(cs);