Solved

How to inherit CList?

Posted on 1998-03-22
2
444 Views
Last Modified: 2013-11-19
Can I create a class which is derived from CList?

template<class TYPE, class ARG_TYPE> class CList : public CObject{
}
Thank you very much!
0
Comment
Question by:syyung6
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
Comment Utility
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
 

Expert Comment

by:keeslim
Comment Utility
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 155
haveThree challenge 22 100
unix example issues 18 44
Problem to open Excel file 15 37
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now