I have a code that generates errors on my PC but does't on other PC.I have windows 7 installed and also installed the compatible SDK for windows 7.I have also included the VC directories (from Tools -> option-> vc Diretories) but still the code generates follwing errors.
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 ';'
statement generating error are as following
static const unsigned int MAPVK_VK_TO_CHAR;
const unsigned int KeyLogger :: MAPVK_VK_TO_CHAR = 0x02;