Dear all,
I would like to store object instances into a CList object but I’m always getting an error telling me “parameter conversion not allowed”…
What I would like to do is to create a list called “virtualPositions”. And into this list I want to store object instances of type “CVirtualPosition”.
Now, when I’m trying to add such an object instance of CVirtualPosition to this list (using method “Add”), I’m getting the error “parameter conversion not allowed”.
See extract of my code below:
CList *virtualPositions = new CList();
CVirtualPosition *vp = new CVirtualPosition(currentTime, openPrices[0], comment);
virtualPositions.Add(vp);
Any idea upon what’s going wrong here?
Thanks in advance!!