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:#pragma comment(lib,"user32.lib")
__declspec(dllimport) BOOL FlashWindowEx (FLASHWINFO *pfwi);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. :( Aidman » over and out
-
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:#pragma comment(lib,"user32.lib")
__declspec(dllimport) BOOL FlashWindowEx (FLASHWINFO *pfwi);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. :( Aidman » over and out
See the FAQ 2.2 I'm trying to call a Windows API, but the compiler gives an undeclared identifier error (C2065). Why?[^] --Mike-- Latest blog entry: *drool* (Alyson) [May 10] Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber "You have Erica on the brain" - Jon Sagara to me
-
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:#pragma comment(lib,"user32.lib")
__declspec(dllimport) BOOL FlashWindowEx (FLASHWINFO *pfwi);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. :( Aidman » over and out
Just download the latest Platform SDK :) http://www.microsoft.com/msdownload/platformsdk/sdkupdate/ regards
-
Just download the latest Platform SDK :) http://www.microsoft.com/msdownload/platformsdk/sdkupdate/ regards
-
I downloaded the full Platform SDK package and installed the Core SDK part. But what do I do next? Do I just copy the .lib and .h files manually? :confused: Aidman » over and out
-
In the vc++ options (extras->options->paths/directories), you need to set the paths to your headers and libs of the platform SDK. Make sure they are at the top of the list in the options. regards