我有一個代碼,可以在我的電腦上生成錯誤,但不會在其他PC上。我安裝了Windows 7並且還安裝了兼容的Windows 7.我還包括VC目錄(來自工具 - > option-> vc Diretories),但代碼仍然會生成follwing錯誤。在VC++中的一些錯誤
error C2059: syntax error : 'constant' error C2238: unexpected token(s) preceding ';' error C2589: '(' : illegal token on right side of '::' warning C4091: '' : ignored on left of 'const unsigned int' when no variable is declared error C2143: syntax error : missing ';' before '::' error C2059: syntax error : '::' error C2059: syntax error : 'constant' error C2238: unexpected token(s) preceding ';'
語句生成錯誤表現如下
static const unsigned int MAPVK_VK_TO_CHAR;
const unsigned int KeyLogger :: MAPVK_VK_TO_CHAR = 0x02;
我認爲我們需要看到比這更多的代碼。 我想你有一個宏定義的地方 – Mark 2009-09-02 15:28:21
感謝您的寶貴意見! – 2009-09-03 12:17:11