You didn't show us what the string created by the C++ code looks like.
I'm going to assume (since you didn't specify) that your string of doubles is delimited in some way, probably with a comma.
I'm going to further assume that you've retrieved the string from the database.
Given those two assumptions...
To put an array of doubles into a delimited string:
string myData = string.Empty;
double[] doubles = new double[]{1.2,3.4,5.6 };
foreach(double dbl in doubles)
{
string comma = (myData.Length == 0)?"":",";
string value = string.Format("{0:#.00}", dbl);
myData = string.Format("{0}{1}{2}", myData, comma, value);
}
string[] parts = myData.Split(',');
double[] partsDouble = new double[parts.Length];
for (int i = 0; i < parts.Length; i++)
{
partsDouble[i] = Convert.ToDouble(parts[i]);
}
You could get really fancy with and use Linq for this, but usually, maintainability with clear-cut code is a better solution. Besides that, sometimes it's all about completing the task with as little fuss as possible.