CAraay<double > val <=> CDoubleArray 
CArray<double , &double> val  the second "double" is the argument of the CArray function for instnace, val.Add(double) ,i think this is what you want!