Original Post
I have a funtion that requires an array of pointers as an argument. if I knew the size of the array at compile time I could use the following code:
MyClass *pointerArray[100];
but becuase I do note know the size of the pointer array until run time I'm forced to use the new operator to create the array at runtime. This is what I've tryed:
MyClass **pointerArray; int val; val = someValue(); pointerArray = new MyClass[val];and I've been getting nothing but errors, I'm sure there is a simple way of doing this and I'll feel like a moron when I hear it but could someone please help? edit: code tag fixup [edited by - Nullio on October 17, 2003 4:32:59 AM]