473,394 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

looking for code to read screen parameters from command prompt

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
3 1945
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Newbillian | last post by:
Is there some way of using vba to automate the processe of joining an Access 97 security workgroup? I typed wrkgadm /? at a command prompt and it just opens the gui, so I'm not sure what the...
11
by: Peter Steele | last post by:
I have a Windows application written in C# that I want to return a non-zero exit code when it it run. The problem is that as a Windows application, there doesn't seem to be a way to control this....
5
by: Helixpoint | last post by:
Here is my code: Dim availMach As New ASPNETProduct.machinedb() Dim dstMachList As DataSet dstMachList = availMach.GetAvailMach(theSearchVal, theSearchBy, theMachCode1, theSearchView,...
11
by: fniles | last post by:
We can not register an ActiveX control on our Vista 32 bit machine. When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party ActiveX control), we got an error: citcp.ocx was loaded...
5
by: hammer45 | last post by:
Modify payroll program so that it uses a class to store and retrive the employee's name, hourly rate and the number of hours worked. Use a constructor to initialize the employee information, and a...
1
by: Tim Golden | last post by:
Ty hensons wrote: (Trying to be helpful here...) What do mean by "save" and what do you mean by "command prompt screen"? And, especially, what platform are you running on? TJG
1
by: norseman | last post by:
Ty hensons wrote: ============================================== That by itself leaves lots of questions. Taken literally to be the "box" then: In Microsoft use the "Print Screen" followed...
4
NeoPa
by: NeoPa | last post by:
Introduction: Macro Security Levels in MS Office applications are recommended to be set to High. This stops any VBA code associated with a project from running, unless it is signed (with a...
1
by: sganeshsvk | last post by:
i want to clear the screen command prompt for mysql in windows XP... In linux we use (CTRL + L) for clear the screen in mysql prompt.... i already use this command ( \c ) then ( \! clear ) for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.