Solved

CListView undeclared identifier

Posted on 2007-11-25
3
525 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
Comment Utility
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
Comment Utility
You missed an 'r' character.
You wrote ctlLView.DeleteAllItems() instead of ctrlLView.DeleteAllItems()
0
 

Author Closing Comment

by:brightak
Comment Utility
Good eyes!  Thanks.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

763 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

11 Experts available now in Live!

Get 1:1 Help Now