How to get the value for a given cell.

You can call GetValueRowCol( ).

Here is an example:

   // String
   CString sValue = GetValueRowCol(nRow, nCol);
   // Number
   double d = atof(GetValueRowCol(nRow, nCol));