为什么CriticalSection 老出错呀?
在VC++MFC文件中加入//CriticalSection
CCriticalSection global_CriticalSection;
老出错(感觉只有运气好的时候不出错)
E:\MFC\x\x.cpp(14) : error C2146: syntax error : missing ';' before identifier 'global_CriticalSection'
E:\MFC\x\x.cpp(14) : error C2501: 'CCriticalSection' : missing storage-class or type specifiers
E:\MFC\x\x.cpp(14) : fatal error C1004: unexpected end of file found