Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. FlashWindowEx not declared?

FlashWindowEx not declared?

Scheduled Pinned Locked Moved C / C++ / MFC
c++businesshelpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aidman
    wrote on last edited by
    #1

    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

    M L 2 Replies Last reply
    0
    • A Aidman

      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

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A Aidman

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Just download the latest Platform SDK :) http://www.microsoft.com/msdownload/platformsdk/sdkupdate/ regards

        A 1 Reply Last reply
        0
        • L Lost User

          Just download the latest Platform SDK :) http://www.microsoft.com/msdownload/platformsdk/sdkupdate/ regards

          A Offline
          A Offline
          Aidman
          wrote on last edited by
          #4

          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

          L 1 Reply Last reply
          0
          • A Aidman

            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

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            A 1 Reply Last reply
            0
            • L Lost User

              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

              A Offline
              A Offline
              Aidman
              wrote on last edited by
              #6

              Thanks! It worked :) Aidman » over and out

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups