Solved

Deriving classes

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

19 Experts available now in Live!

Get 1:1 Help Now