Solved

Deriving classes

Posted on 1998-09-14
1
379 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

690 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