View previous topic :: View next topic |
Author |
Message |
GEWV
Joined: 25 Nov 2013 Posts: 19
|
Posted: Thu Apr 10, 2014 8:42 am Post subject: Resources with gfortran |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7916 Location: Salford, UK
|
Posted: Thu Apr 10, 2014 4:40 pm Post subject: |
|
|
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 |
|
|
|