I always see errors like this: (http://s51.radikal.ru/i133/1006/fe/7179af217faat.jpg) (http://radikal.ru/F/s51.radikal.ru/i133/1006/fe/7179af217faa.png.html)
When this errors will be solved?
Sorry for possible bad english :)
What is the value of WINVER ?
MinGW defaults to a low value if it is not set by user/program.
From windef.h
#ifndef WINVER
#define WINVER 0x0400
/*
* If you need Win32 API features newer the Win95 and WinNT then you must
* define WINVER before including windows.h or any other method of including
* the windef.h header.
*/
#endif
Tim S.
I have set it to 0x0400. Same trouble.
Quote from: C:\MinGW\include\windef.h#ifndef WINVER
#define WINVER 0x0400
/*
* If you need Win32 API features newer the Win95 and WinNT then you must
* define WINVER before including windows.h or any other method of including
* the windef.h header.
*/
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER
/*
* There may be the need to define _WIN32_WINNT to a value different from
* the value of WINVER. I don't have any example of why you would do that.
* However, if you must then define _WIN32_WINNT to the value required before
* including windows.h or any other method of including the windef.h header.
*/
Quote from: C:\MinGW\include\w32api.h/* Use these values to set _WIN32_WINDOWS and WINVER to your minimum support
* level */
#define Windows95 0x0400
#define Windows98 0x0410
#define WindowsME 0x0500
/* Use these values to set _WIN32_WINNT and WINVER to your mimimum support
* level. */
#define WindowsNT4 0x0400
#define Windows2000 0x0500
#define WindowsXP 0x0501
#define Windows2003 0x0502
#define WindowsVista 0x0600
I suggest using the value that is nearest to your system.
By the way that's far beyond the scope of this forum.
We are a C::B forum, not a general programming forum, so this threads violates our forum rules and might get locked.