隔了一段時間后來重新編譯原本還可以編譯運行的程序,在DEBUG下還是正常,但是換成release后就出現(xiàn)了下載問題
'TryEnterCriticalSection' : is not a member of '`global namespace''
解決方法:
處理辦法:在stdafx.h或程序開始處中增加如下宏定義,即可。
用于指明WINDOWS系統(tǒng)版本。
//for use TryEnterCriticalSection
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x500
#endif