[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Using The MSVC Version Resource (VS_VERSION_INFO)

Posted on 1997-05-01
1
Medium Priority
?
427 Views
Last Modified: 2013-12-04
Okay. The version resource is there, but how do I get the info out of it to display to a user on a dlg? Specifically the LegalCopyright info. . . I'm probably overlooking something simple and quick where MS named the function something obscure. Thanks.
0
Comment
Question by:maknight
[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
1 Comment
 
LVL 1

Accepted Solution

by:
MFCGuy earned 100 total points
ID: 1397066
//Here's how I got the product version
//You question should be very similar...

DWORD dwBuffSize = ::GetFileVersionInfoSize((char*)LPCTSTR(fileName),&dwHandle);
if( ::GetFileVersionInfo((char*)LPCTSTR(fileName), 0, dwBuffSize, (LPVOID)szBuff ) )
{
   if( dwBuffSize && ::VerQueryValue(szBuff,                                                                              "\\StringFileInfo\\040904B0\\ProductVersion",                                                                  &lpInfo,                                                            (UINT*)&cch) )
//do something with the value                                    
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

656 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