| CODE |
| #if 0 |
| CODE |
| #endif |
| QUOTE |
| /* define _WIN32_IE if you really want it */ |
| QUOTE (MinGW Developer Studio) |
| --------------------Configuration: a - Debug-------------------- Compiling source file(s)... MessageBox.cpp In file included from C:\MinGWStudio\MinGW\include\commctrl.h:7, from ..\..\MessageBox.cpp:3: C:\MinGWStudio\MinGW\include\prsht.h:127: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:128: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:129: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:130: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:132: error: 'LPCDLGTEMPLATE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:134: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:136: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:138: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:139: error: 'DLGPROC' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:140: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:141: error: `CALLBACK' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:141: error: `pfnCallback' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:141: error: `HWND' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:141: error: `UINT' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:141: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:141: error: function `int UINT(...)' is initialized like a variable C:\MinGWStudio\MinGW\include\prsht.h:142: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:148: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:150: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:151: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:152: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:153: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:155: error: 'LPCDLGTEMPLATE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:156: error: conflicting types for `typedef struct _PROPSHEETPAGEW DUMMYUNIONNAME' C:\MinGWStudio\MinGW\include\prsht.h:133: error: previous declaration as ` typedef struct _PROPSHEETPAGEA DUMMYUNIONNAME' C:\MinGWStudio\MinGW\include\prsht.h:157: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:159: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:160: error: syntax error before `}' token C:\MinGWStudio\MinGW\include\prsht.h:160: error: redefinition of `int DUMMYUNIONNAME2' C:\MinGWStudio\MinGW\include\prsht.h:137: error: `int DUMMYUNIONNAME2' previously declared here C:\MinGWStudio\MinGW\include\prsht.h:161: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:162: error: 'DLGPROC' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:163: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:164: error: `CALLBACK' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:164: error: `pfnCallback' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:164: error: `HWND' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:164: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:164: error: function `int UINT(...)' is initialized like a variable C:\MinGWStudio\MinGW\include\prsht.h:165: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:171: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:172: error: `CALLBACK' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:172: error: `LPFNPSPCALLBACKA' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:172: error: `HWND' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:172: error: typedef `UINT' is initialized (use __typeof__ instead) C:\MinGWStudio\MinGW\include\prsht.h:172: error: `typedef int UINT' redeclared as different kind of symbol C:\MinGWStudio\MinGW\include\prsht.h:164: error: previous declaration of `int UINT(...)' C:\MinGWStudio\MinGW\include\prsht.h:172: error: invalid declarator C:\MinGWStudio\MinGW\include\prsht.h:173: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:174: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:175: error: `HPROPSHEETPAGE' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:177: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:178: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:179: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:180: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:181: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:183: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:184: error: conflicting types for `typedef struct _PROPSHEETHEADERA DUMMYUNIONNAME' C:\MinGWStudio\MinGW\include\prsht.h:156: error: previous declaration as ` typedef struct _PROPSHEETPAGEA DUMMYUNIONNAME' C:\MinGWStudio\MinGW\include\prsht.h:185: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:187: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:189: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:190: error: syntax error before `}' token C:\MinGWStudio\MinGW\include\prsht.h:190: error: redefinition of `int DUMMYUNIONNAME2' C:\MinGWStudio\MinGW\include\prsht.h:160: error: `int DUMMYUNIONNAME2' previously declared here C:\MinGWStudio\MinGW\include\prsht.h:191: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:193: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:195: error: 'PFNPROPSHEETCALLBACK' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:207: error: syntax error before `}' token C:\MinGWStudio\MinGW\include\prsht.h:208: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:210: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:211: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:212: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:213: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:214: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:216: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:217: error: conflicting types for `typedef struct _PROPSHEETHEADERW DUMMYUNIONNAME' C:\MinGWStudio\MinGW\include\prsht.h:184: error: previous declaration as ` typedef struct _PROPSHEETPAGEA DUMMYUNIONNAME' C:\MinGWStudio\MinGW\include\prsht.h:218: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:219: error: redefinition of `UINT nPages' C:\MinGWStudio\MinGW\include\prsht.h:186: error: `UINT nPages' previously declared here C:\MinGWStudio\MinGW\include\prsht.h:220: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:222: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:223: error: syntax error before `}' token C:\MinGWStudio\MinGW\include\prsht.h:223: error: redefinition of `int DUMMYUNIONNAME2' C:\MinGWStudio\MinGW\include\prsht.h:190: error: `int DUMMYUNIONNAME2' previously declared here C:\MinGWStudio\MinGW\include\prsht.h:224: error: syntax error before `{' token C:\MinGWStudio\MinGW\include\prsht.h:226: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:227: error: redefinition of `int DUMMYUNIONNAME3' C:\MinGWStudio\MinGW\include\prsht.h:194: error: `int DUMMYUNIONNAME3' previously declared here C:\MinGWStudio\MinGW\include\prsht.h:228: error: 'PFNPROPSHEETCALLBACK' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:240: error: syntax error before `}' token C:\MinGWStudio\MinGW\include\prsht.h:241: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:242: error: `CALLBACK' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:242: error: `LPFNADDPROPSHEETPAGE' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:242: error: `HPROPSHEETPAGE' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:242: error: `LPARAM' was not declared in this scope C:\MinGWStudio\MinGW\include\prsht.h:242: error: typedef `BOOL' is initialized (use __typeof__ instead) C:\MinGWStudio\MinGW\include\prsht.h:242: error: invalid declarator C:\MinGWStudio\MinGW\include\prsht.h:243: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\prsht.h:245: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:246: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\prsht.h:251: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\prsht.h:252: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\prsht.h:253: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\prsht.h:254: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\prsht.h:255: error: syntax error before `(' token In file included from ..\..\MessageBox.cpp:3: C:\MinGWStudio\MinGW\include\commctrl.h:1744: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1750: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1752: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:1756: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1762: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1764: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:1855: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1856: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1857: error: 'SYSTEMTIME' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1860: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1863: error: syntax error before `[' token C:\MinGWStudio\MinGW\include\commctrl.h:1867: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1874: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1875: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1879: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1880: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1885: error: 'BYTE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1886: error: 'BYTE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1887: error: syntax error before `[' token C:\MinGWStudio\MinGW\include\commctrl.h:1888: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1939: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1943: error: 'LPTSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1946: error: 'HKEY' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1947: error: 'LPCTSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1948: error: 'LPCTSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1951: error: 'HBITMAP' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1952: error: 'HBITMAP' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1955: error: 'RECT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1961: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1962: error: 'HBITMAP' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1965: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1978: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1979: error: 'HBITMAP' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1982: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:1997: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:1998: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2002: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2007: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2013: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2022: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2029: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2043: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2046: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2049: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2052: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2055: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2058: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2061: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2062: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2063: error: 'HDC' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2064: error: 'RECT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2065: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2067: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2071: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2072: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2101: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2102: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2139: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2143: error: 'HKEY' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2144: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2145: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2148: error: 'HKEY' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2149: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2150: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2153: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2155: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2160: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2164: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2172: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2176: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2186: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2188: error: 'RECT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2189: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2190: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2192: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2203: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2205: error: 'RECT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2206: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2207: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2209: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2218: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2219: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2224: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2225: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2230: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2231: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2233: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2236: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2242: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2243: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2244: error: syntax error before `[' token C:\MinGWStudio\MinGW\include\commctrl.h:2245: error: 'HINSTANCE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2248: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2258: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2271: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2274: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2281: error: 'PUINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2283: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2292: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2295: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2302: error: 'PUINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2304: error: conflicting types for ` typedef struct _LVITEMW FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2283: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2304: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2309: error: 'LPCSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2310: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2311: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2313: error: conflicting types for ` typedef struct tagLVFINDINFOA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2304: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2313: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2318: error: 'LPCWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2319: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2320: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2322: error: conflicting types for ` typedef struct tagLVFINDINFOW FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2313: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2322: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2326: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2332: error: conflicting types for ` typedef struct _LVHITTESTINFO FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2322: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2332: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2339: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2346: error: conflicting types for ` typedef struct _LVCOLUMNA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2332: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2346: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2353: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2360: error: conflicting types for ` typedef struct _LVCOLUMNW FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2346: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2360: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2363: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2365: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2371: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2372: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2379: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2381: error: conflicting types for ` typedef struct tagNMLVDISPINFOA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2360: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2381: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2385: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2387: error: conflicting types for ` typedef struct tagNMLVDISPINFOW FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2381: error: previous declaration as ` typedef struct _LVITEMA FAR' C:\MinGWStudio\MinGW\include\commctrl.h:2387: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2391: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2392: error: 'WORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2396: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2407: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2412: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2422: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2427: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2491: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2498: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2501: error: 'PFNTVCOMPARE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2502: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2508: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2512: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2518: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2522: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2528: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2534: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2540: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2541: error: 'WORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2548: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2556: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2563: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2564: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2569: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2572: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2578: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2579: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2584: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2587: error: 'LPARAM' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2591: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2597: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2598: error: 'WORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2603: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2604: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2612: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2613: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2614: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2618: error: 'POINT' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2620: error: 'SYSTEMTIME' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2622: error: syntax error before `;' token C:\MinGWStudio\MinGW\include\commctrl.h:2623: error: syntax error before `*' token C:\MinGWStudio\MinGW\include\commctrl.h:2625: error: 'NMHDR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2626: error: 'SYSTEMTIME' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2628: error: 'LPMONTHDAYSTATE' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2639: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2640: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2641: error: 'LPSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2644: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2648: error: 'HBITMAP' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2663: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2664: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2665: error: 'LPWSTR' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2668: error: 'HWND' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2672: error: 'HBITMAP' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2689: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2692: error: 'HDC' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2699: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2700: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2702: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2704: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2705: error: 'DWORD' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2706: error: 'COLORREF' is used as a type, but is not defined as a type. C:\MinGWStudio\MinGW\include\commctrl.h:2766: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2767: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2768: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2769: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2770: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2781: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2782: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2783: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2784: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2797: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2799: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2800: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2801: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2802: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2803: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2804: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2805: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2806: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2807: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2808: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2809: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2811: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2812: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2813: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2814: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2815: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2816: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2818: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2819: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2820: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2821: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2823: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2824: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2825: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2826: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2827: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2828: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2833: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2835: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2837: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2912: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2913: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2937: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:2959: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:3011: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:3012: error: syntax error before `(' token C:\MinGWStudio\MinGW\include\commctrl.h:3013: error: syntax error before `(' token In file included from C:\MinGWStudio\MinGW\include\windows.h:48, from ..\..\MessageBox.cpp:4: C:\MinGWStudio\MinGW\include\windef.h:244: error: conflicting types for ` typedef unsigned int UINT' C:\MinGWStudio\MinGW\include\prsht.h:172: error: previous declaration as ` typedef int UINT' {standard input}: Assembler messages: {standard input}:48: Error: symbol `_DUMMYUNIONNAME2' is already defined {standard input}:69: Error: symbol `_DUMMYUNIONNAME2' is already defined {standard input}:85: Error: symbol `_nPages' is already defined {standard input}:89: Error: symbol `_DUMMYUNIONNAME2' is already defined {standard input}:93: Error: symbol `_DUMMYUNIONNAME3' is already defined Too many errors have been found. a.exe - 362 error(s), 0 warning(s) |
| QUOTE (donprogc++ @ Apr 9 2005, 12:55 AM) |
| looks like your commctrl.h is messed up :blink: |
| CODE |
| #include <commctrl.h> #include <windows.h> |
| QUOTE |
| Order of header inclusion Headers are included in order from “the most specific to the most general.” That is, any header files in the local directory are included first, then any of my own “tool” headers, such as require.h, then any third-party library headers, then the Standard C++ Library headers, and finally the C library headers. The justification for this comes from John Lakos in Large-Scale C++ Software Design (Addison-Wesley, 1996): Latent usage errors can be avoided by ensuring that the .h file of a component parses by itself – without externally-provided declarations or definitions... Including the .h file as the very first line of the .c file ensures that no critical piece of information intrinsic to the physical interface of the component is missing from the .h file (or, if there is, that you will find out about it as soon as you try to compile the .c file). If the order of header inclusion goes “from most specific to most general,” then it’s more likely that if your header doesn’t parse by itself, you’ll find out about it sooner and prevent annoyances down the road. |