forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WINIO@

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
clint



Joined: 14 Jun 2006
Posts: 37

PostPosted: Wed Jul 26, 2006 9:06 am    Post subject: WINIO@ Reply with quote


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
View user's profile Send private message
Martin



Joined: 09 Sep 2004
Posts: 43

PostPosted: Wed Jul 26, 2006 2:12 pm    Post subject: WINIO@ Reply with quote

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
View user's profile Send private message
clint



Joined: 14 Jun 2006
Posts: 37

PostPosted: Mon Jul 31, 2006 4:14 am    Post subject: WINIO@ Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7928
Location: Salford, UK

PostPosted: Wed Aug 02, 2006 1:08 am    Post subject: WINIO@ Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group