?
Solved

CListView undeclared identifier

Posted on 2007-11-25
3
Medium Priority
?
597 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

850 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