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
How to assign an icon to my program
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'
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
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.
THANK YOU 😃