Solved

Deriving classes

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get filename and folder into excel 7 74
Detect file exist or not 3 156
Excel file not created as expected 7 71
Capture logon name 13 70
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

776 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