我有一个代码,可以在我的电脑上生成错误,但不会在其他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