Link to home
Start Free TrialLog in
Avatar of brightak
brightak

asked on

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 http://www.functionx.com/visualc/applications/explorer.htm):

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

Open in new window

Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

CListView requires "afxcview.h", but there are other strange things on your code.
Could you send more code around?

ASKER CERTIFIED SOLUTION
Avatar of alb66
alb66
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brightak
brightak

ASKER

Good eyes!  Thanks.