How to inherit CList?

Can I create a class which is derived from CList?

template<class TYPE, class ARG_TYPE> class CList : public CObject{
}
Thank you very much!
syyung6Asked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
Take a look at the Advanced MFC Sample "COLLECT: Illustrates MFC Collection Classes" and the documentation Visual C++ Programmer's Guide "Collections: Template-Based Classes".
0
 
keeslimCommented:
I am trying to do the same thing, and have already dissected the COLLECT Sample. You can create a class derived from CList using the following format: class MyClass : public CList<int,int>. In my situation, I do not want to explicitly TYPE the class, and so have not yet determined how to use this accordingly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.