View previous topic :: View next topic |
Author |
Message |
dpannhorst
Joined: 29 Aug 2005 Posts: 165 Location: Berlin, Germany
|
Posted: Wed Jan 25, 2017 4:58 pm Post subject: %mi and name of icon file in resource script |
|
|
In my 64bit project I am using this statement:
winio@('%mi[myicon]')
In my resource file is defined:
myicon ICON file.ico
Compiling and linking my project succeeds without errors.
Running the executable leeds to this Clearwin+ error message:
myicon is not available as an icon resource
Where is the problem?
Running the same project as 32bit executable is working as desired.
Detlef Pannhorst |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Wed Jan 25, 2017 6:04 pm Post subject: |
|
|
For 64 bit compilation, /r is required on the SRC command line.
Also, in some cases, an explicit call to SRC is required where previously a RESOURCES directive was sufficient. |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Wed Jan 25, 2017 8:32 pm Post subject: |
|
|
which means in plain ingleesh for noddy's like me ! ?
examples ? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Thu Jan 26, 2017 8:19 am Post subject: |
|
|
Further information is available in the document NotesOn64BitFtn95.txt. This in turn assumes some familiarity with the main FTN95 documentation.
After that, which bit needs clarification? |
|
Back to top |
|
|
dpannhorst
Joined: 29 Aug 2005 Posts: 165 Location: Berlin, Germany
|
Posted: Thu Jan 26, 2017 9:06 am Post subject: |
|
|
I have used the /r option in the SRC comman line and I have also linked the resource.res file as described in the documentation.
Detlef Pannhorst |
|
Back to top |
|
|
dpannhorst
Joined: 29 Aug 2005 Posts: 165 Location: Berlin, Germany
|
Posted: Thu Jan 26, 2017 9:35 am Post subject: |
|
|
Sorry, the problem has been solved now. From my different tries the the linking of the resource.res file was disabled in my link file. After enabling everything is working.
Thanks for all help.
Detlef Pannhorst |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Thu Jan 26, 2017 9:39 am Post subject: |
|
|
It works OK for me.
File mi.f95...
Code: | WINAPP
program main
integer i,winio@
i=winio@('%ww&')
i=winio@('Hello&')
i=winio@('%mi[myicon]')
end
|
File mi.rc...
Code: | myicon ICON wmdm.ico
|
FTN95 mi.f95 /64
SRC mi.rc /r
SLINK64
lo mi.obj
lo mi.res
file |
|
Back to top |
|
|
|