Fehler bei FlashWindowEx

Executer

Mitglied
Warum kommt bei mir bei der Funktion FlashWindowEx der folgende Fehler? :confused: :confused: :confused:

error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall FlashWindowEx(struct FLASHWINFO *)" (__imp_?FlashWindowEx@@YGHPAUFLASHWINFO@@@Z)
Debug/Testcontrol.exe : fatal error LNK1120: 1 unresolved externals

Code:
// declare the FLASHWINFO structure
FLASHWINFO strFlashWinfo;
// clear the structure
ZeroMemory(&strFlashWinfo, sizeof(FLASHWINFO));
// set the number of times to flash to 10
strFlashWinfo.uCount = 10;
// only flash the windows caption
strFlashWinfo.dwFlags =  FLASHW_CAPTION;
// specify the window to flash
strFlashWinfo.hwnd = hAlertWindow;
// set the flash rate to the same rate as the system cursor
strFlashWinfo.dwTimeout = 0;
// set the size of the structure
strFlashWinfo.cbSize = sizeof(strFlashWinfo);
// flash the window
FlashWindowEx(&strFlashWinfo);

mfg Executer
 
Hmm, hast du eventuell VC6 und/oder ein altes Platform SDK?
Daran könnte es liegen, aber das muss dann schon wirklich alt sein.
 
Ich hab VC++6 und desshalb hab ich FlashWindowEx() auch selber in die Winodws.h reingeschrieben.. vielleicht hab ich aber auch da nen fehler gemacht...
Oder kann das VC++6 allgemein nicht?
 
Verändere um Himmels willen nie die windows.h!

Das mit FlashWindowEx hat mit VC6 nicht direkt etwas zu tun. VC6 ist in erster Linie nur die Oberfläche zum Editieren und kompilieren.

Es gibt von Microsoft ein Platform SDK, dass die Libraries und Header-Dateien bereitstellt. Bei jedem Visual Studio ist die damalig aktuelle Version dabei. Bei VC6 gab es vermutlich FlashWindowEx noch nicht.

Dieses Platform SDK gibt es zum kostenlosen Download, ist aber ca. 140 MB (meine ich, kann auch daneben liegen) gross. Dieses müsstest du bei dir dann installieren, und falls die Installation es nicht tut, im Studio die include-Ordner und Library-Ordner um einen Eintrag auf das neue Platform SDK erweitern.

Wichtig: Dieser neue Eintrag muss über den anderen stehen, sonst sieht Studio zuerst wieder in den alten Dateien nach!
 
:) hab nix kaput gemacht außerdem hab cih auch ne Sicherheitskopie erstellt :)

Danke ich werds versuchen :)

//EDIT: Hat gefunzt danke nochmal
 
Zuletzt bearbeitet:
Zurück