Fehler: "First use this Function"
-
Ich habe folgendes in meinem Programm stehen stehen:
#include <windows.h> #include <uxtheme.h> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFensterStil) { BOOL aaa = IsThemeActive(); if (aaa==true) { MessageBox(NULL,"Themes sind aktiv","",0); } return 0; }
Kann mir jemand erklären wie genau diese Fehlermeldung zu verstehen ist und wie ich ich weg bekomme ?
In function `int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)': 10 `IsThemeActive' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it appears in.) D:\Sonstiges\C++\Neuer Ordner\Makefile.win [Build Error] [main.o] Error 1
-
Da steht, dass IsThemeActive unbekannt ist.
-
falsches forum. gehört ins winapi forum.
soweit ich weis wird bei dev-cpp der header uxtheme nicht mitgeliefert.
falls du wxwindows installiert hast ist das file dabei. sieht aber komplett anders als die von ms. also schau dir mal dein file an das du includiert hast.
-
Im Ordner include befindet sich aber eine Datei mit Namen uxtheme.h .
Das gleiche Proglem habe ich wenn ich die Funktion InitCommonControls()
aus der Datei commctrl.h benutzen will.