forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Defining file properties for FTN95 executables

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Thomas



Joined: 18 Feb 2005
Posts: 35
Location: Gummersbach, Germany

PostPosted: Fri Feb 12, 2021 2:21 pm    Post subject: Defining file properties for FTN95 executables Reply with quote

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
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 375
Location: Manchester

PostPosted: Fri Feb 12, 2021 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
John-Silver



Joined: 30 Jul 2013
Posts: 1509
Location: Aerospace Valley

PostPosted: Tue Mar 02, 2021 10:55 am    Post subject: Reply with quote

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 ... Smile "
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 375
Location: Manchester

PostPosted: Tue Mar 02, 2021 12:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Thomas



Joined: 18 Feb 2005
Posts: 35
Location: Gummersbach, Germany

PostPosted: Sun Mar 07, 2021 11:04 am    Post subject: Resource file that works for me Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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