Solved

How to get printer driver version from the registry

Posted on 2003-10-30
5
916 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

617 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