CListView undeclared identifier

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

Thanx in advance
CListCtrl &ctrlLView = GetListCtrl();

Open in new window

Who is Participating?
alb66Connect With a Mentor Commented:
You missed an 'r' character.
You wrote ctlLView.DeleteAllItems() instead of ctrlLView.DeleteAllItems()
Jaime OlivaresSoftware ArchitectCommented:
CListView requires "afxcview.h", but there are other strange things on your code.
Could you send more code around?

brightakAuthor Commented:
Good eyes!  Thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.