By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,213 Members | 2,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,213 IT Pros & Developers. It's quick & easy.

looking for code to read screen parameters from command prompt

P: n/a
I am looking for a way to determine the screen type when I am checking out a
laptop that has no HDD installed. I am looking for something I can compile
to run under a DOS or windows 98 command prompt when I boot from a CD to
dfetermine if a screen is 800X600, XGA, SXGA+, UXGA, etc. I can compile C++
under visual studio 6.

Thanks
May 3 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 4 Maj, 00:43, "richk" <nos...@nospam.comwrote:
I am looking for a way to determine the screen type when I am checking out a
laptop that has no HDD installed. I am looking for something I can compile
to run under a DOS or windows 98 command prompt when I boot from a CD to
dfetermine if a screen is 800X600, XGA, SXGA+, UXGA, etc. I can compile C++
under visual studio 6.
First of, there is no way of doing that in C++, you'll need some
platform-dependent solution. Second, for C++ you really should
upgrade, either to a newer version of VS or get the VC2005 Express,
VC6 is way too old and non-conformant.

To give you a solution, get a Linux live CD with X and see what
resolution it comes up with.

--
Erik Wikström

May 4 '07 #2

P: n/a
"richk" <no****@nospam.comwrote in message
news:EA****************@newssvr21.news.prodigy.net ...
>I am looking for a way to determine the screen type when I am checking out
a laptop that has no HDD installed. I am looking for something I can
compile to run under a DOS or windows 98 command prompt when I boot from a
CD to dfetermine if a screen is 800X600, XGA, SXGA+, UXGA, etc. I can
compile C++ under visual studio 6.
If you just want to know what the video display is you don't need anything
other than debug which will fit on a bootable floppy. It has come with all
MS-DOS since 2.0 or so.

debug
to run it at a command prompt
then
dc000:0

This will display the memory starting at memory address 0xC000 (or 0x0C00 or
0xC0000 I can never remember which). Anyway, this is where the video
driver/buffer starts.

The first page (8 lines) yous should see some garbage to the right but
somewhere it'll say IBM VGA Compatible. Then press
d
and press enter to see the second page. For mine I see the text in there:
GeForce 7600 GS VGA BIOSV0719
And, hey, I'm using a GeForce 7600 GS

I guess you can write something in C or C++ to query the display to ask it
to enumerate it's display modes if you wanted, but if you have the
information there just look it up on the web.

Myself, I would just google the laptop model and read the specs.
May 5 '07 #3

P: n/a
Jim Langston wrote:
"richk" <no****@nospam.comwrote in message
news:EA****************@newssvr21.news.prodigy.net ...
>I am looking for a way to determine the screen type when I am checking out
a laptop that has no HDD installed. I am looking for something I can
compile to run under a DOS or windows 98 command prompt when I boot from a
CD to dfetermine if a screen is 800X600, XGA, SXGA+, UXGA, etc. I can
compile C++ under visual studio 6.

Myself, I would just google the laptop model and read the specs.
Many vendors offer a range of display options and or GPU for the same
model number.

--
Ian Collins.
May 5 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.