I think you got things too complicated...just get data from a DataRange and perform the integration:
BOOL DataRange::GetData( vectorbase * pData, int nIndex )
andint ocmath_numeric_integral( double x, double * py, uint npts, const double * pxData, const double * pyData )
You may want to take a close look at the latter one.
妾+ 午旦 妹罕妾 妾伊 用仇 妾/ 岫ㄞ
妾京用 仍巨 件 侈 件戶' 甘岫平 /欠 白岫妹
併 艮 岫 奈 白 岫
岫