Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the version of a DLL built in C, compiled with CL.EXE?

If I compile the source for a C-language DLL with CL.exe, how do I set the file properties including File version Product name, Product version, Copyright and so on, so that I can view these properties in Windows Explorer?

version number

In a .NET application written in C#, I could do this with assembly attributes like [assembly: AssemblyVersion("1.2.3.4")]. How do I do this in a C-language project?

like image 419
Cheeso Avatar asked Oct 15 '09 20:10

Cheeso


People also ask

How do you change the version of a DLL file?

This worked perfectly when I tried it. 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!


1 Answers

Embed a VersionInfo resource into your dll/application.

http://codingmisadventures.wordpress.com/2009/02/20/embedding-version-in-your-application-using-visual-c/

VERSIONINFO resource

like image 200
Pratik Bhatt Avatar answered Oct 21 '22 22:10

Pratik Bhatt