Silverfrost Forums

Welcome to our forums

How to assign an icon to my program

18 Feb 2006 7:27 #540

In the Kbase forum, adminstrator showed using RESOCUES statement so that we can add an icon file to the excutiable program. However, i followed all the instructions that a comilation error was shown when compilation. Is any problem of my PC?? It should be grateful if anyone could tell me. Thank You

20 Feb 2006 10:34 #542

The instructions in the KBase article still apply. You may need to specify the full path to your icon file, if this is the case please ensure to quote the path (if it contains spaces) and escape all backslashes, for example, a working example I have just built is:

PROGRAM icontest
PRINT *,'This program has an icon'
END
RESOURCES
myIcon ICON 'C:\\Documents and Settings\\andy\\My Documents\\icon.ico'
21 Feb 2006 2:58 #545

Thanks a lot My problem is the path incorrect. It is fixed now. However, can i ask one more question that what is the meaing myIcon and ICON ? is it names like variable name ? Thank You

21 Feb 2006 5:32 #546

myIcon is the resource name that you would use in your code (for example, with %ic). ICON just specifies that the file is an icon file.

21 Feb 2006 10:14 #547

THANK YOU 😃

Please login to reply.