   Bogus headers problem
  Er... ok, so I installed the latest platform SDK version from Microsoft, because I was told that I'd need it to include "windows.h" in my program in VS 2005 Express. I thought it would help - but no! It quadrippled my problems. It seems to have installed bogus versions of several header files in some remote location on my system where every C/C++ installer seems to copy said headers from! I uninstalled VS6 last night, and then reinstalled again and installed Service Pack 4. That didn't work. Ok, so I tried VS2005 again just to be sure. Nah, 18 errors that weren't there before the platform SDK (also uninstalled platform SDK last night before I did reinstallation of VS6 + SP). So today when I came home from school, I tried to uninstall VS2005, delete all it's folders and then install VS6 again (not the service pack this time cos I couldn't be bothered). Did it work? No. Still 18 errors. Ok, so I decided to go for the last option; I tried installing Dev-Cpp. BUT THAT DIDN'T WORK EITHER! That got me really pissed, so I decided to post here and see if anyone has had the same problem, and have perhaps found a solution.The incriminating headers seems to be included by windows.h, and are as follows:rpcndr.h [Dev-Cpp\include]rpcdep.h [Dev-Cpp\include]wingdi.h [Dev-Cpp\include]winnt.h [Dev\Cpp\include]Edit: Tried searching for winnt.h. Results turned up in two folders: "Dev-Cpp\include\" and "Visual Studio\VC98\Include\". This is what's confusing me; How can both programs give errors on the same file if they didn't copy it from the same place? And isn't said file supposed to be included in both programs separately? o_OEdit2: Yes, I searched in hidden folders too...Edit3: Just remembered that I used package manager in Dev-Cpp to download Win32 API before I compiled. That might explain where Dev-Cpp got it's headers from, but not where VS6 got it's headers from. It also seems weird that they seemingly report on the same headers.   
  bump   ;  How about waiting until it actually falls off the page before bumping? Or even waiting until it's half a page down... Anyways - what the Z are you talking about? First you are talking about installing new platform SDK header files for Visual Studio 2005, and then talk about Dev-C++ and then throw in some VC6 in the mix for good measure. What is it you want? There's nothing wrong with any version of the platform SDK headers, just fix your code instead.   ;Quote:Original post by Anonymous Poster What is it you want? There's nothing wrong with any version of the platform SDK headers, just fix your code instead.What I want is to see if anyone's got anything to say about this that might help me solve my problem. Maybe Microsoft sshould solve their code instead?!--------------------Configuration: SDL DrawImage test - Win32 Debug--------------------Compiling...main.cppc:\programfiler\microsoft visual studio\vc98\include\winnt.h(4743) : error C2143: syntax error : missing ';' before '*'c:\programfiler\microsoft visual studio\vc98\include\winnt.h(4743) : error C2059: syntax error : ';'c:\programfiler\microsoft visual studio\vc98\include\winnt.h(4743) : error C2238: unexpected token(s) preceding ';'c:\programfiler\microsoft visual studio\vc98\include\wingdi.h(2200) : error C2143: syntax error : missing ';' before '*'c:\programfiler\microsoft visual studio\vc98\include\wingdi.h(2200) : error C2059: syntax error : '['c:\programfiler\microsoft visual studio\vc98\include\wingdi.h(2200) : error C2238: unexpected token(s) preceding ';'c:\programfiler\microsoft visual studio\vc98\include\rpcdcep.h(44) : error C2143: syntax error : missing ';' before '*'c:\programfiler\microsoft visual studio\vc98\include\rpcdcep.h(44) : error C2059: syntax error : ';'c:\programfiler\microsoft visual studio\vc98\include\rpcdcep.h(44) : error C2238: unexpected token(s) preceding ';'c:\programfiler\microsoft visual studio\vc98\include\rpcndr.h(798) : error C2143: syntax error : missing ';' before '*'c:\programfiler\microsoft visual studio\vc98\include\rpcndr.h(798) : error C2059: syntax error : ';'c:\programfiler\microsoft visual studio\vc98\include\rpcndr.h(798) : error C2238: unexpected token(s) preceding ';'c:\programfiler\microsoft visual studio\vc98\include\wtypes.h(1044) : error C2628: 'LONGLONG' followed by 'signed' is illegal (did you forget a ';'?)c:\programfiler\microsoft visual studio\vc98\include\wtypes.h(1044) : error C2628: 'LONGLONG' followed by '__int64' is illegal (did you forget a ';'?)c:\programfiler\microsoft visual studio\vc98\include\wtypes.h(1044) : error C2208: '__int64' : no members defined using this typec:\programfiler\microsoft visual studio\vc98\include\objidl.h(7311) : error C2143: syntax error : missing ';' before '*'c:\programfiler\microsoft visual studio\vc98\include\objidl.h(7311) : error C2059: syntax error : ';'c:\programfiler\microsoft visual studio\vc98\include\objidl.h(7311) : error C2238: unexpected token(s) preceding ';'c:\programs\c++\sdl\sdl drawimage test\main.cpp(109) : warning C4018: '>' : signed/unsigned mismatchc:\programs\c++\sdl\sdl drawimage test\main.cpp(154) : warning C4018: '>' : signed/unsigned mismatchc:\programs\c++\sdl\sdl drawimage test\main.cpp(174) : warning C4018: '>' : signed/unsigned mismatchError executing cl.exe.SDL DrawImage test.exe - 18 error(s), 3 warning(s)Edit: If anyone hasn't got it yet; I've tried THREE different compilers and all of them seems to be complaining about the SAME headers!   ;  Edit: Why are you including files for VC 98? Something's probably screwy with your include directories.   ;  First, delete whatever compiler/SDK you installed since the problems started, just to be safe. (.Net too)If you've done that, follow these links in this order:http://msdn.microsoft.com/vstudio/express/visualc/download/http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/If that doesn't work, try "format c:" ;)Much luck!   ;  So you tried in in three compilers and all give you the same errors? Hint: The problem is in main.cpp.   ;Quote:Original post by OluseyiEdit: Why are you including files for VC 98? Something's probably screwy with your include directories.Because I'm trying to make VS 6 work?Kalasjniekof: I might try that if I'm desperate enough. I'm very tired of VS2005 already though, since it's caused me so many problems. Thanks though!   ;  Keep trying though, VC6 in terms of CS is as ancient as a dinosaur...Expect to see a lot of syntax errors in code you have written yourself, as VC6 was released before the latest standards.   ;Quote:Original post by OluseyiEdit: Why are you including files for VC 98? Something's probably screwy with your include directories.I just did this:#define _WIN32_WINDOWS 0x0410That didn't work. Is there any other windows version numbers I could try?Kalasjniekof: Yeah, I'm going to keep on trying. Thanks!   