The following example shows how to destroy an ECLPS object.

ULONG		RowPos, ColPos;
try {
      pPS = new ECLPS('A');
      RowPos = pPS->ConvertPosToRow(544);
      ColPos = pPS->ConvertPosToCol(544);
      printf("PS position is at row %lu column %lu.",
      RowPos, ColPos);
      // Done with PS object so kill it
      delete pPS;
catch (ECLErr HE) {
  // Just report the error text in a message box
  MessageBox( NULL, HE.GetMsgText(), "Error!", MB_OK );