DetectOrientationDegree Example for C++ 5.0 and later

void CSample_COMDlg::OnButton4()
{
   long lDegree = pRasterDoc->GetDetectOrientationDegree(0);
   CString csBuffer;

   csBuffer.Format("Orientation degree = %d" + lDegree);
   AfxMessageBox(csBuffer);
}