Create a Text file with RC extension and include it as Icon Resource type
You can use absolute or relative Path
Example :
Code: Select all
ICONE1 ICON "1.ico"
ICONE2 ICON "2.ico"
Code: Select all
ICONE1 ICON "1.ico"
ICONE2 ICON "2.ico"
Code: Select all
ICONE1 ICON "D:\\1.ico"
ICONE2 ICON "D:\\2.ico"
for example, you can use this:NoahPhense wrote:So does this mean that we can use a .rc file to contain the file information?
- np
Code: Select all
1 VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
{
BLOCK "StringFileInfo"
{
BLOCK "040704b0"
{
VALUE "ProductName", "Myprogram.exe\0"
VALUE "ProductVersion", "1.0\0"
VALUE "FileVersion", "1.0.0.1\0"
VALUE "FileDescription", "\0"
VALUE "InternalName", "Myprogram.exe\0"
VALUE "OriginalFilename", "Myprogram.exe\0"
VALUE "LegalCopyright", "© 2005 by NoahPhense\0"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0407, 0x4b0
}
}
Code: Select all
1 VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
{
BLOCK "StringFileInfo"
{
BLOCK "040704b0"
{
VALUE "ProductName", "Myprogram.exe\0"
VALUE "ProductVersion", "1.0\0"
VALUE "FileVersion", "1.0.0.1\0"
VALUE "FileDescription", "\0"
VALUE "InternalName", "Myprogram.exe\0"
VALUE "OriginalFilename", "Myprogram.exe\0"
VALUE "LegalCopyright", "© 2005 by NoahPhense\0"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0407, 0x4b0
}
}
In your Application import the compiled Resource like:"D:\Programmieren\PureBasic4\Compilers\porc.exe" "Version.rc" ; change Path
Code: Select all
Import "Version.res" : EndImport
Then, for people working in cross-platform (or thinking on) is not.Since Resources are a specific to the Windows platform only, PB does not include a Library to manage them and they are not further documented here. See documentation on the Windows API and resources for more information.
create a "myresource.res" with porc from your script and import this!Michael Vogel wrote: • any other ideas?