Not really, heh
Originally Posted by Pix
I think your problem is here:
new returns a void*, and you are trying to shoehorn that into a Points. The array notation will cause that to be interpreted as a CConnectionPoint, so what you are trying to do is shove a void* into a CConnectionPoint, and thus the compiler is telling you there is no such conversion possible (which there isn't).
Points[cPoints - 1] = new CConnectionPoint(this, cPoints);
I think if you want to use Points as an array, what you want is a pointer to a set of pointers, so your definition should be:
Then, when you use Point, it will be interpreted as a CConnectionPoint*, and the compiler will put the void* into it.
I think. When you start getting into pointers to pointers, it begins to make my head hurt. But if I interpret what you are trying to do correctly, I think that's what you are after.
"They laughed when I said I was going to be a comedian ... They're not laughing now." - Bob Monkhouse