Charles Liu wrote: How can I declare it to be dynamic? Yes, but instead of CList<CPoint*,CPoint*&>, you need to use CObject. CList is not DECLARE_DYNAMIC(), so you can't specify it as the base class. Doing this means that you can tell what class the CPointList is, but it will appear to be a direct descendent of CObject, ie. RUNTIME_CLASS(CPointList)->GetBaseClass() will return RUNTIME_CLASS(CObject). BTW, the reason the compiler tells you it has too many parameters is because the preprocessor doesn't care about C syntax - it just splits the macro at the commas. It does not care (and does not know) that the second comma is inside a template definition, and assumes it to be separating parameters. The only comma is treats differently is one that's inside a string. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"