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
Your link "this document" does not seem to work.
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