Silverfrost Forums

Welcome to our forums

Resources with gfortran

10 Apr 2014 7:42 #13941

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:

        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'.

10 Apr 2014 3:40 #13947

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

Here is the command line....

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.

Please login to reply.