Solved

CListView undeclared identifier

Posted on 2007-11-25
3
546 Views
Last Modified: 2013-11-20
I'm getting an "undeclared identifier" error on the line that invokes my CListView.  I've tried both "#include <afxcview.h>" and "#include <afxcmn.h>".  I'm using Visual C++ 2005 and Windows Vista.  I'll print the code (it's not mine--it's from the tutorial http://www.functionx.com/visualc/applications/explorer.htm):

Thanx in advance
CListCtrl &ctrlLView = GetListCtrl();
 
	ctlLView.DeleteAllItems();

Open in new window

0
Comment
Question by:brightak
3 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20348071
CListView requires "afxcview.h", but there are other strange things on your code.
Could you send more code around?

0
 
LVL 19

Accepted Solution

by:
alb66 earned 125 total points
ID: 20348613
You missed an 'r' character.
You wrote ctlLView.DeleteAllItems() instead of ctrlLView.DeleteAllItems()
0
 

Author Closing Comment

by:brightak
ID: 31410917
Good eyes!  Thanks.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

808 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