Solved

How to inherit CList?

Posted on 1998-03-22
2
468 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 98
Smart Camera scanning and reading information 3 122
Line meaning 9 91
moto 4g phone enable finger print 4 48
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…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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