一介聊天室程序中的定义错误,怎么解决????
hqok 2006-04-21 09:18:55 void ChatLog(CString string)
{
((CChatServerView*)m_viewList.GetHead())->ChatLog(string);
}
就是这一段代码,我按着书上的来写的,但是VC给出如下错误!!
G:\VC\ChatServer\ChatServerDoc.cpp(167) : error C2065: 'm_viewList' : undeclared identifier
G:\VC\ChatServer\ChatServerDoc.cpp(167) : error C2228: left of '.GetHead' must have class/struct/union type
G:\VC\ChatServer\ChatServerDoc.cpp(167) : error C2227: left of '->ChatLog' must point to class/struct/union
这是什么原因啊,不能定义吗???