Solved

Deriving classes

Posted on 1998-09-14
1
367 Views
Last Modified: 2013-11-20
I am making an SDI application with split windows and different views for each side, like Windows Explorer.  I am having troulbe derving the CTreeListView classes.  I must reference the CList/TreeView derived class to set the runtime class in CreateView.  I included the header files for those classes in the implementation file of CMainFrame.  When I build it gives me the error: "CTree/ListView:base class undefined"  in the header files of CTree/ListView.
0
Comment
Question by:Jothanin
1 Comment
 
LVL 6

Accepted Solution

by:
snoegler earned 30 total points
ID: 1322128
This error happens because the CTreeView/CListView classes aren't covered by 'stdafx.h'
by default. To include them, put this line into your stdafx.h:

#include <afxcview.h>

Hope that helped :)
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
ORA-01403: no data found 43 105
maxBlock challenge 30 142
building a service to accessed via telnet client, want colors ? 4 92
Unix Command -- Challenging  question 7 95
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

839 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