
Originally Posted by
wysota
You have to define which version of the API you want to use prior to including winapi files. In doubt consult MinGW docs or ask at a MinGW forum.
You mean
#define WINVER 0x0500
#define _WIN32_WINNT 0x0600
#include "windows.h"
#include <psapi.h>
#include "reason.h"
#define WINVER 0x0500
#define _WIN32_WINNT 0x0600
#include "windows.h"
#include <psapi.h>
#include "reason.h"
To copy to clipboard, switch view to plain text mode
? If so, I already did that. Note: when I sad the winbase.h don't include this function, I mentioned it as result of Ctrl+F searching.
About the forums and docs, well I guess I'll do that, but isn't this still a QtCreator problem? I mean, when the installator proposes to install MingW as compiler to be used by QtCreator one would expect that Nokia/Digia would include the lastest version of the compiler, not some version with includes at least 4 years old and un-updated.
Bookmarks