Solved

How to get printer driver version from the registry

Posted on 2003-10-30
5
908 Views
Last Modified: 2010-08-05
Ca anybody tell me how to display printer driver version using VC++

right now I ma seeing the driver version is in REG_BINARY  I want to disply in string. Can you pl tell me how to do it.

Thanks
Abinash
0
Comment
Question by:aparida123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 9650083
From where in the registry are you trying to get this information?
0
 

Author Comment

by:aparida123
ID: 9652947
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Print/Windows NT x86/Drivers/Version-3/HP LaserJet 1200 Series PCL

Field name: DriverVersion
0
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 9657866
I would not rely on that registry entry - just checked the machines around here and got binary zeros for that. Bettr take the driver'd DLL name and retieve the verson from the file using the technique presented in http://support.microsoft.com/default.aspx?scid=kb;en-us;167597 ("SAMPLE: GetVers.exe Specifies Component FileVersion and #Version")
0
 
LVL 9

Expert Comment

by:tinchos
ID: 10546314
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: jkr {http:#9657866}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question