Thread: GetSystemMetrics LNK2001 error

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    4

    GetSystemMetrics LNK2001 error

    Help. I recreated a working project in VC++ 6 and now I am getting 3 LNK2001 errors:

    wrk_menu.obj : error LNK2001: unresolved external symbol _xGetSystemMetrics@4
    wrk_menu.obj : error LNK2001: unresolved external symbol _xGetMonitorInfo@8
    wrk_menu.obj : error LNK2001: unresolved external symbol _xMonitorFromPoint@12

    All I did was start a new project file and move all the old files over to it (to clean up all the junk that had made it's way into my program over the years), but now I can't get it to link.

    I have checked the project settings, and all the same libraries are refrenced there. I don't know waht else to check, any ideas?

    Thanks.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Could be that some of the junk you cleaned out was not so.

    I think it is possible there should be a line like...

    #define _WIN32_WINNT 0x0500

    ... somewhere.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  2. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  3. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  4. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM
  5. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM