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.
©c¡Ï ¤È¥¹ ©f¨u©c ©c¥ì ¥Î¤³ ©c/ ©¦£¯
©c¨Ê¥Î ¤´¥¨ ¥ó ¨× ¥ó¤á' ¥Ì©¦¥ /¤í ¥Õ©¦©f
¨Ö ¦á ©¦£þ ©` ¥Õ ©¦
©¦