Solved

CListView undeclared identifier

Posted on 2007-11-25
3
538 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
string initialization in java 11 110
Which Linux flavors will this run on? 6 76
Capture logon name 13 37
Copy output image from TWindowsMediaPlayer 6 23
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

911 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

15 Experts available now in Live!

Get 1:1 Help Now