Thread: Detect Screen Resolution

  1. #1
    Registered User
    Join Date
    Jul 2008

    Detect Screen Resolution

    Hi, I'm a noob so I need some help with this.

    I want to write a function in c that returns the height and width of the screen and stores them in an array. Thats it!

    Any help would be appreciated. Thanks.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    You'll have to use a Windows-specific function in order to do this. What one, I don't know.

    Aha, I think this is it.

    [edit] BTW, that was the fourth google hit for "c return screen resolution". [/edit]

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ubuntu screen resolution
    By lruc in forum Tech Board
    Replies: 13
    Last Post: 11-27-2008, 05:03 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. Getting the screen resolution
    By Finchie_88 in forum Windows Programming
    Replies: 2
    Last Post: 10-26-2004, 06:03 PM
  5. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM