Silverfrost Forums

Welcome to our forums

Icon and resource issue

28 Nov 2018 1:37 #22870

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





28 Nov 2018 8:39 #22872

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.

Please login to reply.