FlashWindowEx

This is a discussion on FlashWindowEx within the Windows Programming forums, part of the Platform Specific Boards category; Hey everyone, I'm trying to use FlashWindowEx(), but when I declare a FLASHWINFO object, the compiler doesn't recognize it and ...

  1. #1
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879

    Question FlashWindowEx

    Hey everyone, I'm trying to use FlashWindowEx(), but when I declare a FLASHWINFO object, the compiler doesn't recognize it and gives me an error. I've got <winsock2.h> included, and I also tried including <windows.h> at one point, but to no avail. What am I missing? On MSDN it just says to include <windows.h>, but that's not doing the trick for me
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #2
    Wen Resu
    Join Date
    May 2003
    Posts
    219
    have you done
    #declare WINDOWS_LEAN_AND_MEAN ?
    That might cause it not to show up as it takes out many functions

  3. #3
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    No, I haven't. In fact, I've never done so in my life Any other ideas?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    #define WINVER 0x0500
    #include <windows.h>
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Ok thanks, I'll try that when I get back to the school computer. But what does 0x500 mean?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    That means that 5 is the minimum Windows version you want to support. WINVER defaults to 0x0400, which supports WinNT 4 and Win95. 0x0500 needs 2k and 98, 0x0510 ME and XP.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    .... 0x? thats HEX code prefix, never would have thought it could define a windows version...
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  8. #8
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    That's just the way the windows headers were written. You could write
    #define WINVER 1280
    as well, the compiler wouldn't know the difference.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  9. #9
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    It's declared in winuser.h And you must make sure to link with the user32.lib.

    What compiler are you using?

  10. #10
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Hmm, take a look at this:
    Code:
    --------------------Configuration: Fillit - Win32 Debug--------------------
    Compiling...
    main.cpp
    NOTE: WINVER has been defined as 0x0500 or greater which enables
    Windows NT 5.0 and Windows 98 features. When these headers were released,
    Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
    For this release when WINVER is defined as 0x0500 or greater, you can only
    build beta or test applications.  To build a retail application,
    set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
    to see if retail Windows NT 5.0 or Windows 98 headers are available.
    See the SDK release notes for more information.
    Under this, I get the same errors as before

    Mithoric:
    I tried including <winuser.h>, but same results. Also, I think MSDN said that although it's in winuser.h, you should include windows.h and it will automatically be included. I'm using MSVC 6.0 Pro, so user32.lib is automatically linked.

    Any more ideas?...
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  11. #11
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Go to microsoft.com and download the latest Platform SDK, yours is outdated.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  12. #12
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    @#^$&# I hate that search feature...

    microsoft.com -> download centre -> Product/Techonology: Platform SDK -> No keywords -> Go
    Results: 424 results, all of them samples, examples, help files, and PocketPC sdk's.

    -> Back -> Keyword: win32 -> Go
    Results: 64 results, all of them samples, examples, helpfiles, and PocketPC sdk's.

    -> Back -> Keyword: (your keyword here) -> Go
    Results: (x) results, all of them samples, examples, helpfiles, and PocketPC sdk's, where (-2) < x < (9999999999)

    Any better place to get it?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  13. #13
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Use a real search engine. Beware - it's massive. You could just copy the definition from the documentation.

  14. #14
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    *blows up microsoft's search engine*
    Google pwns all! And you too, anonytmouse. But the filesize doesn't Oh well. It's slowly downloading.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  15. #15
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Google
    http://www.microsoft.com/msdownload/...sdk/sdkupdate/
    Requires IE though, for what, I do not know.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 03:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21