View previous topic :: View next topic |
Author |
Message |
clint
Joined: 14 Jun 2006 Posts: 37
|
Posted: Wed Jul 26, 2006 9:06 am Post subject: WINIO@ |
|
|
Under the debugger in Visual Studio
Code: | I = WINIO@('%mi[MYLOGO]&') |
gives the following error:
MYLOGO is not available as an icon resource.
Where should MYLOGO.ICO be placed to avoid this? (Placing it in the same directory as the project file or executable does not seem to fix this.)
Is there a resource path somewhere?
thanks
clint
|
|
Back to top |
|
|
Martin
Joined: 09 Sep 2004 Posts: 43
|
Posted: Wed Jul 26, 2006 2:12 pm Post subject: WINIO@ |
|
|
You should specify the icon in the resources section of your main source file, i.e. add the following to the end of your source file if you do not already have a resource section:
RESOURCES
mylogo ICON mylogo.ico
See the mico.f95 example in the demo/clearwin sub-directory of your FTN95 installation directory for an example of this. |
|
Back to top |
|
|
clint
Joined: 14 Jun 2006 Posts: 37
|
Posted: Mon Jul 31, 2006 4:14 am Post subject: WINIO@ |
|
|
I already have some recource files (e.g.) "myprog.rc"
How do I place .rc files into a .ftn595p project file?
(I can alter a source file and put in a resource block..... but is there a better way?)
thanks
Clint |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Wed Aug 02, 2006 1:08 am Post subject: WINIO@ |
|
|
Clint
When using Plato3, you can add a resource file to your project in the ordinary way (like any other Fortran source file).
|
|
Back to top |
|
|
|