From: SourceForge.net <no...@so...> - 2005-08-20 14:23:44
|
Bugs item #1264709, was opened at 2005-08-20 08:39 Message generated for change (Comment added) made by bartdergrosse You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1264709&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: w32api Group: Waiting User Response >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: BartDerGrosse (bartdergrosse) Assigned to: Earnie Boyd (earnie) Summary: winver.h will not work Initial Comment: After update the win32 API packate to version 3.3 from 3.2 my app's will not compile. With 3.2 it will work. But on 3.3 I get this error: C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:86: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:87: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:88: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:89: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:90: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:91: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:92: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:93: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:94: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:95: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:96: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:97: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:98: error: `DWORD' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:100: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:101: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:102: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:103: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:104: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:105: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:106: error: `BOOL' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:107: error: `BOOL' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:108: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:109: error: `DWORD' does not name a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:110: error: `BOOL' does not n ame a type C:/c++/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winver.h:111: error: `BOOL' does not n ame a type ---------------------------------------------------------------------- >Comment By: BartDerGrosse (bartdergrosse) Date: 2005-08-20 14:23 Message: Logged In: YES user_id=1115039 Thanks. this will work:) ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2005-08-20 14:05 Message: Logged In: YES user_id=15438 You do not give sample code so I can only guess at what you've done. You have included winver.h directly instead of using windows.h. So: ALWAYS #include <windows.h> NEVER #include <winver.h> Earnie ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1264709&group_id=2435 |