there are several points I don't get. first, you didn't answered my previous question : why do you use a pointer of pointer if you have a simple "list" ? also, if you're familiar with STL, why not using it ? and to answer your question (which I don't think is the good design to follow though), no it's impossible to litteraly "add a structure at the end of a pointer to pointer". for that, you'll have to allocate a new area with a size of "last array"+1, then copy every old pointers address into the new "list", and add the pointer to your new struct at the end of the list. at last, don't forget to delete the old array. but I still think you'd better use a vector. the std::vector::push_back() function will do this transparently for you...
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]