Is it must that all the dlls created in C++ have a version number ? I have dlls in my machine but when i right click i am not able to see the version number.
P.S : I have Win 7 installed.
If you reference the dll in Visual Studio right click it (in ProjectName/References folder) and select "Properties" you have "Version" and "Runtime Version" there. In File Explorer when you right click the dll file and select properties there is a "File Version" and "Product Version" there.
For a file that is missing version info completely: After opening the DLL in Visual Studio, go to Edit > Add Resource > Version and click New. Then in the new Version tab, change FILEVERSION and PRODUCTVERSION, CompanyName, etc. Save the files and you're all set!
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio. Select the Configuration Properties > Linker > General property page. Modify the Version property.
To look at what is on the machine click Start– and type in the path to the assembly folder which is C:windowsassembly and press ENTER. This will bring up a folder that shows a list of installed components. Simply Right-Click on the one you want to check and select properties.
It's important to understand, that the version number will be not used during loading the DLL. So it's not required information which DLL or and Program Executable (Like .EXE, .OCX, .SYS, .FON and so on) must have.
The real purpose of version is to help installation program to compare the DLL existing on the computer with the installed one. The most important version in the case is FILEVERSION
part or the VERSIONINFO resource. You can read more about the API to access the information on MSDN.
The version resource is very practical also for support. If you good protocol the changes in the DLL which you redistribute to other computers or other clients then the version resource could help you for troubleshooting. By examining of the version of the DLL you can probably find out whether the problem which take place is already well-known and are fixed in the more recent version of the DLL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With