Solved

How to inherit CList?

Posted on 1998-03-22
2
452 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
ID: 1317141
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
ID: 1317142
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 75
iSeries FTP Exit Program 8 123
ORA-01403: no data found 43 89
substring method in java 1 96
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

17 Experts available now in Live!

Get 1:1 Help Now