GetObjectInfo example for C++ 5.0 and later

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

m_pRasterProc->GetObjectInfo(m_LeadRasterView.GetRaster(),false);
strMsg.Format(TEXT("X = %d\n Y = %d\n Angle = %d\n Roundness = %d"),
               m_pRasterProc->ObjectXPos,
               m_pRasterProc->ObjectYPos,
               m_pRasterProc->ObjectOrientationAngle,
               m_pRasterProc->ObjectRoundness);

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