菜鸟问题!
程序部分如下:
public:
void DrawText(CDC *pDC);
CStringList m_strList;
CStrList m_strDisplay;
virtual ~CSDIDoc();
调试出现下面错误是怎么回事?
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
SDI.cpp
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2146: syntax error : missing ';' before identifier 'm_strDisplay'
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2501: 'CStrList' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2501: 'm_strDisplay' : missing storage-class or type specifiers
MainFrm.cpp
SDIDoc.cpp
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2146: syntax error : missing ';' before identifier 'm_strDisplay'
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2501: 'CStrList' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2501: 'm_strDisplay' : missing storage-class or type specifiers
SDIView.cpp
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2146: syntax error : missing ';' before identifier 'm_strDisplay'
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2501: 'CStrList' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\sdi\sdidoc.h(38) : error C2501: 'm_strDisplay' : missing storage-class or type specifiers
Generating Code...
Error executing cl.exe.
SDI.exe - 9 error(s), 0 warning(s)