I want to convert the latest 50 values contained in the CloseMD array property of the IEasyLanguageObject to a vector. This is what I came up with. But I don't think it's very effecient. I found an example of how to convert from an array to a vector, but this only gets me halfway.
Is it possible to convert this toi a vector without copying it?
How can this be done?
1 2 3 4 5 6 7 8 9 10
externdouble __stdcall DoConversie
( IEasyLanguageObject * pELObj, )
{
vector<double> sig;
for (int i = 0; i < 50; i++)
{
sig.push_back(pELObj->CloseMD[data1]->AsDouble[ i ]);
}
}
Here is a link to the documentation of this object ;