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.
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.
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.