From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI User Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically retrieve informations embedded in executables

Overview

This small example program retrieves informations embedded into executables or DLLs. The code is mainly taken from MSDN examples and info.

Description

When creating an executable or a DLL some informations can be included like version numbers, copyright data and so on. Most, but not all of these informations are displayed when looking at program properties in Windows Explorer; they can also be retrieved programmatically with appropriate calls to Win32API.

This example let the user browse system resources and choose a filename, then displays on screen some informations retrieved from the file.

How to run this example

The sample project can be run as-is.

How to integrate the code in your application

SelectFile function is the core of the example: it can be simply copied in your source to gather this facility. Since it makes use of Win32 API, including windows.h is mandatory, as well as adding version.lib to the project.


Requirements

Software

This program has been developed in LabWindows/CVI 2012SP1 Full Development System

It relies on some system APIs to work so the interface to the Win32 API must be installed.

According to this document (WARNING: it may take a *long* time to open!) the APIs used are available in every CVI version so it should be possible to run the example in base version too, however I cannot test it since I only have FDS.

Hardware

No hardware is required to run this example



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Comments
georgewbush
Member
Member
on

Your link "this document" does not seem to work.

RobertoBozzolo
Proven Zealot
Proven Zealot
on

Thanks for the info: I had that page saved in my favorites and didn't check that the url has changed.

The link is correct now



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Contributors