|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Thomas
Joined: 18 Feb 2005 Posts: 56 Location: Gummersbach, Germany
|
Posted: Fri Feb 12, 2021 2:21 pm Post subject: Defining file properties for FTN95 executables |
|
|
When using ftn95 and slink to create executables, the resulting *.exe files have only few file properties. Properties such as
Version
Product name
Product version
Copyright
are missing.
I there an option to define properties as actually the case for ftn95.exe?
I looked for corresponding src options without success. _________________ Thomas |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 449 Location: Manchester
|
Posted: Fri Feb 12, 2021 5:20 pm Post subject: |
|
|
FTN95 includes a resource that looks like that below and compiled using src (the .rc file also needs includes):
Code: | VS_VERSION_INFO VERSIONINFO
FILEVERSION 8,70,144,0
PRODUCTVERSION 8,70,144,0
FILEFLAGSMASK 0
FILEFLAGS 0
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE 0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080904b0"
BEGIN
VALUE "CompanyName", "Silverfrost Ltd\0"
VALUE "FileDescription", "Silverfrost Fortran 95 Compiler\0"
VALUE "FileVersion", "8.70.144.0\0"
VALUE "InternalName", "FTN95\0"
VALUE "LegalCopyright", "Copyright (C) Silverfrost 1993-2020\0"
VALUE "OriginalFilename", "FTN95.exe\0"
VALUE "ProductName", "Silverfrost FTN95 Compiler\0"
VALUE "ProductVersion", "8.70.144.0\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x809, 1200
END
END |
|
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Tue Mar 02, 2021 10:55 am Post subject: |
|
|
Robert,
I was waiting for someone else to ask this question but it seems to have been overlooked (not by you I hasten to add, you can't answer a question not posed after all !)
Where (in which 'resource' can we find this what appears to be a useful utility,
and ...
What exactly does 'the .rc file also needs includes' require
Thanks
JohnS _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 449 Location: Manchester
|
Posted: Tue Mar 02, 2021 12:15 pm Post subject: |
|
|
The fragment I posted is source code that is in a .RC file. The file is compiled using src and the results linked using slink.
This file has these includes:
#include <windows.h>
#include <winver.h> |
|
Back to top |
|
|
Thomas
Joined: 18 Feb 2005 Posts: 56 Location: Gummersbach, Germany
|
Posted: Sun Mar 07, 2021 11:04 am Post subject: Resource file that works for me |
|
|
John,
I balso battled to get a .rc script compiled based on Robert's example code. Finally my colleague Moji could help with the following code:
Code: | 1 VERSIONINFO
FILEVERSION 0,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "Steinm�ller Engineering\0"
VALUE "LegalCopyright", "(c) Steinm�ller Engineering GmbH.\0"
VALUE "ProductName", "SE Anwendung\0"
VALUE "ProductVersion", "32 bit\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x407, 1252
END
END |
I can compile the file with
src filename
for 32 bit applications respectively
src /r filename
for 64 bit and get an obj file (extension .obj for 32 bit; extension .res for 64 bit) which can be loaded with slink respectively slink64 together with outher obj files. The executable will imply the desired file properties.
In general a instruction, manual and/or tutorial would be appreciated. For the time beeing we need to help each other on the basis of a "try and error" approach. _________________ Thomas |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|