Hi to all, I am trying to detect which Windows Operating System is running on the machine, eg Windows XP, Windows 2003 etc. I have the following code but does not compile:-
Line 5 error: error C2143: syntax error : missing ';' before '.'
Line 5 error: error C4430: missing type specifier - int assumed.
Line 5 error:error C2371: 'osvi' : redefinition; different basic types
I am also getting errors on the "if" and "else" statements.