ROIMean example for C++ 5.0 and later

   ILEADRasterProcess* m_pRasterProc= NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
   CString strOut;

   m_pRasterProc->GetOverlayAttributes(m_LeadRasterView.GetRaster(),0,OVERLAYATTRIBUTES_FLAGS);
   strOut.Format("ROIMean        = %d \n"
                 "ROIArea        = %d\n"
                 "ROIStandardDeviation  = %f",
                  m_pRasterProc->OverlayAttributes->ROIMean,
                  m_pRasterProc->OverlayAttributes->ROIArea,
                  m_pRasterProc->OverlayAttributes->ROIStandardDeviation
                 );         

   MessageBox(strOut);
   m_pRasterProc->Release();