Thread: AnimateWindow

  1. #1
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532

    AnimateWindow

    I found out about this function on msdn.com and used the function according to their syntax and specifications. When I tried to compile it (In Dev-C++, on a Windows 98 system) it gave me errors telling me the flags I used were undeclared and that there is an implicit declaration of the AnimateWindow function. I don't know why it would not work at all, because all the info I used for the function came off MSDN.
    Here are the errors:
    Code:
    30 c:\windows\desktop\animat~1.cpp
     `AW_ACTIVATE' undeclared (first use this function)
    30 c:\windows\desktop\animat~1.cpp
     `AW_CENTER' undeclared (first use this function)
    30 c:\windows\desktop\animat~1.cpp
     implicit declaration of function `int AnimateWindow(...)'
    Thanks.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You're either using a version of the w32api headers and libs that don't include that function or you don't have "_WIN32_WINNT" defined >= 0x0500.

    First try defining _WIN32_WINNT as 0x0500 - either before you include windows.h or project wide.

    If it still can't find it, download the Win32 API "DevPak" for Dev-C++ here:
    http://devpaks.org/details.php?devpak=22

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. AnimateWindow
    By Anuradh_a in forum Windows Programming
    Replies: 1
    Last Post: 06-12-2008, 01:04 AM
  2. AnimateWindow && Dev-C++ problems
    By willc0de4food in forum Windows Programming
    Replies: 4
    Last Post: 03-13-2006, 04:34 PM
  3. AnimateWindow()
    By Templario in forum Windows Programming
    Replies: 1
    Last Post: 02-22-2003, 03:52 AM