FlashWindowEx not declared?
Hi, all :)
I am writing a program in Visual C++ 6.0 Service Pack 5 that uses the FlashWindowEx() function. But when I compile the program it says:
error C2065: 'FlashWindowEx' : undeclared identifier
I have included both the windows.h and winuser.h but neither declares this function, but according to MSDN the requirements are:
Windows NT/2000/XP: Included in Windows 2000 and later.
Windows 95/98/Me: Included in Windows 98 and later.
Header: Declared in Winuser.h; include Windows.h.
Library: Use User32.lib.
I have even tried to declare it my self by writing:
But it didn’t work. I know I can use LoadLibrary and call the function from there, but it seems to strange that it isn’t declared in neither windows.h or winuser.h. Where can I find a windows.h and/or winuser.h that declares it, and I suppose that I would also need user32.lib. :(
__declspec(dllimport) BOOL FlashWindowEx (FLASHWINFO *pfwi);