pinxue:
有熟悉VC和Windows的吗?有个奇怪的问题
[阅读: 402] 2005-04-30 12:01:03
#include <windows.h>
enum CLASS_ENUM { SS_AUTO, SS_SIMPLE, SS_SERIES };
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
}
main.cpp(2) : error C2059: syntax error : 'constant'
main.cpp(2) : error C2143: syntax error : missing ';' before '}'
main.cpp(2) : error C2143: syntax error : missing ';' before '}'
如果把enum放到window.h之前就没问题