Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Particular WinAPI-function "not declared in this scope"- others work. -Qt5.1

$
0
0
Hey there, Since I use a (static) build of Qt 5.1-beta1 I find myself confronted with strange compiler errors. With previous versions, my program compiled and ran just fine; using the current beta, the compiler seems not to recognise the “RegDeleteKeyEx()“ function while creating and modifying keys works. Now I stumbled upon a limitation in the header “winreg.h”: #if (WINVER >= 0x0502) WINADVAPI LONG WINAPI RegDeleteKeyExA(HKEY,LPCSTR,REGSAM,DWORD); WINADVAPI LONG WINAPI RegDeleteKeyExW(HKEY,LPCWSTR,REGSAM,DWORD); #endif But since I’m using Windows 7 (and since the program worked fine before) this should actually not be a problem! So why does the compiler (MinGW with g++ 4.7.2) suddenly ignore this function and how can I fix it? Thanks in advance! Edit: I created a scary workaround by simply commenting the WINVER-checking lines. However, crippling the compiler’s headers doesn’t seem to be the way to go…

Viewing all articles
Browse latest Browse all 18427

Trending Articles