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 

Resources with gfortran

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
GEWV



Joined: 25 Nov 2013
Posts: 19

PostPosted: Thu Apr 10, 2014 8:42 am    Post subject: Resources with gfortran Reply with quote

I use resources for the inclusion of pictures.
How can I add the images with gfortran in my program, because WinApp only works for FTN95 and 32-bit applications.
A simple example:
Code:
        winapp 'Start.rc'
 
      program win_LadeBMP
!       ----------------------------------------------------------------
!       UP : lade BMP-Bild
!       ----------------------------------------------------------------
        use     mswin$
        implicit none

        integer         win

        win=winio$('%im[StartBild]')
        end

Resource 'Start.rc' includes my 'Start.bmp'.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Thu Apr 10, 2014 4:40 pm    Post subject: Reply with quote

You will need a resource script, then compile using the "gFortran" resource compiler x86_64-w64-mingw32-windres.

Here is the command line....

Code:
x86_64-w64-mingw32-windres --input filename.rc --output %res.o --output-format=coff


res.o is then linked in together with the source code .o files

Plato can do this for you in a project.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ 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