View previous topic :: View next topic |
Author |
Message |
jcherw
Joined: 27 Sep 2018 Posts: 57 Location: Australia
|
Posted: Wed Nov 28, 2018 2:37 am Post subject: Icon and resource issue |
|
|
My program uses an icon. The .ico file is in the 'Resource files' folder of Plato (when I click on it Plato opens it in picture editor window.
The main code hast the following statements:
winapp 'simu3icon'
.... lots of code lines
ans=winio@('%mi[simu3icon]&')
.... lots of code lines
resources
simu3icon ICON hstsimu3.ico
and the icon file is available in the same folder as the source.
When compiling I get the error
*** Unable to open file HSTSIMU3.ICO
Any suggestion what the problem is woudl be very welcom
|
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Wed Nov 28, 2018 2:54 am Post subject: |
|
|
G'day jcherw
which version of FTN95 are you using and which version of windows ?
Are you compiling in x32 or x64 mode ?
Try just running the resource compiler with the resource file and see if that runs ok or not. _________________ ''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 ... " |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Wed Nov 28, 2018 9:39 am Post subject: |
|
|
The most likely explanation is that more information is needed on where to find the file.
The short name that you have used will only work if the resource compiler is operating in the same folder as the icon file or if it is "visible" via the PATH environment variable.
Try using the full path to the icon file (using double quotes if it contains spaces). If that works then you can also try other ways such as providing a relative path, copying the file to a more accessible place etc. |
|
Back to top |
|
|
|