Detect Screen Resolution

This is a discussion on Detect Screen Resolution within the C Programming forums, part of the General Programming Boards category; Hi, I'm a noob so I need some help with this. I want to write a function in c that ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    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
    Location
    Canada
    Posts
    8,047
    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. http://www.programmersheaven.com/mb/...adMessage.aspx

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

    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: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    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, 04:03 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 03:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09: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

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