View previous topic :: View next topic |
Author |
Message |
Foon
Joined: 18 Feb 2006 Posts: 5
|
Posted: Sat Feb 18, 2006 8:27 am Post subject: How to assign an icon to my program |
|
|
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 |
|
Back to top |
|
|
Andrew
Joined: 09 Sep 2004 Posts: 232 Location: Frankfurt, Germany
|
Posted: Mon Feb 20, 2006 11:34 am Post subject: 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:
Code: |
PROGRAM icontest
PRINT *,"This program has an icon"
END
RESOURCES
myIcon ICON "C:\Documents and Settings\andy\My Documents\icon.ico"
|
|
|
Back to top |
|
|
Foon
Joined: 18 Feb 2006 Posts: 5
|
Posted: Tue Feb 21, 2006 3:58 am Post subject: How to assign an icon to my program |
|
|
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
|
|
Back to top |
|
|
RDrury
Joined: 09 Jan 2006 Posts: 1
|
Posted: Tue Feb 21, 2006 6:32 am Post subject: How to assign an icon to my program |
|
|
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. |
|
Back to top |
|
|
Foon
Joined: 18 Feb 2006 Posts: 5
|
Posted: Tue Feb 21, 2006 11:14 am Post subject: How to assign an icon to my program |
|
|
THANK YOU |
|
Back to top |
|
|
|