If you would like to get paid for surfing the web, jump to http://www.codeoftheweek.com/paidsurf.html
In this issue we show how to retrieve the version number of any file which contains a version resource (which are mostly DLL, OCX and EXE files).
Questions? Email us at firstname.lastname@example.org.
This issue allows you to easily get the version number of a file. This is especially useful to ensure the DLL's installed on a users system matches what your software requires.
If you have any questions about using this class, let us know at email@example.com
Public Function GetVersionNumber(ByVal sFileName As String) As String
This single routine returns a text string which shows the version number of the full filename specified by sFilename. If the version can not be determined it returns an empty string.
See above description.
This sample will show the version number of the file called MSVBVM50.DLL.
To see the source code for this issue you must be a subscriber to Code of the Week. If you are a subscriber the source code is available at the following address: http://www.codeoftheweek.com/membersonly/bi/0098.html