I need to add version information to a DLL. I've tried the example under FAQ but keep getting errors (error line 0) and Line too long. Is there an example for adding version info?
Announcement
Collapse
No announcement yet.
Add Version Info to DLL
Collapse
X
-
a) Create a "Mydll.rc" file. Filename of your choice, but should end with ".rc". Something like this:
Code:#include "D:\\PBWin80\\WinAPI\\Resource.h" VS_VERSION_INFO VERSIONINFO FILEVERSION 1, 0, 1, 0 PRODUCTVERSION 1, 0, 1, 0 FILEOS VOS_WINDOWS32 BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "CompanyName", "YourCompany" VALUE "FileDescription", "My great dll" VALUE "FileVersion", "1.01" VALUE "Build", "01-Jan-2008" VALUE "OriginalFilename", "MyGreat.dll" VALUE "LegalCopyright", "Copyright ©2008 YourCompany" VALUE "ProductName", "MyProggie" END END END
b) Compile this resource file in your (PB) IDE
c) Add this line to your dll source code:
Code:#RESOURCE "Mydll.pbr"
Check in Windows Explorer for your dll version info.
Kind regardsLast edited by Eddy Van Esch; 14 Feb 2008, 07:44 AM.Eddy
-
You must us #RESOURCE, not #INCLUDE with the PBR file. The 418 error means that the compiler is treating the PBR file is a source file, when it isn't.
Comment
Comment