I am a little unclear on what is happening here and if it's even necessary.
ICOMInterface** pICOMInterface = new ICOMInterface*[reserve]; for(SIZE_T i = 0; i < required; i++) pICOMInterface[i] = new ImplementingClass; for(SIZE_T i = (reserve-1); i >= required; i--) delete pICOMInterface[i];
I'm trying to get a set of a contained implementing class without knowing the size. I want to declare its maximum size and then delete or free the unused ones/memory after....
Edited 6 Years Ago by Buttacup: n/a