Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我用 CL.exe 编译 C 语言 DLL 的源代码,如何设置文件属性,包括文件版本、产品名称、产品版本、版权等,以便在 Windows 资源管理器中查看这些属性?
在用 C# 编写的 .NET 应用程序中,我可以使用诸如[assembly: AssemblyVersion("1.2.3.4")]. 我如何在 C 语言项目中做到这一点?
[assembly: AssemblyVersion("1.2.3.4")]
将 VersionInfo 资源嵌入到您的 dll/应用程序中。
http://codingmisadventures.wordpress.com/2009/02/20/embedding-version-in-your-application-using-visual-c/
VERSIONINFO 资源