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 

Resource files again....

 
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: Tue Aug 01, 2006 8:05 am    Post subject: Resource files again.... Reply with quote

How are resource files added to a FTN95 project?
(The problem is that I have several scattered throughout the project tree.)

Code:
WINAPP 0,0,’....myprog.rc’
PROGRAM
DO something……
END DO
END PROGRAM


does not work (the resource file is 2 levels above the source containing PROGRAM).

Code:
myprog.rc
defines the icon for the executable, menu options, and icons in windows.

How do you use the /WINDOWS compiler switch in the FTN95 project?

Thanks

Clint
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Aug 02, 2006 1:17 am    Post subject: Resource files again.... Reply with quote

Clint,

1) You should be able to use the full path for the resource with WINAPP (you can leave out the "0,0,").

2) You can use WINAPP alone and add the resource file to your project in the same way that you add Fortran source files.

3) Instead of using WINAPP (alone) you can use /WINDOWS by adding this to the user-supplied properties in the properties dialog (there is a space for any other options - I forget the wording used).
Back to top
View user's profile Send private message AIM Address
clint



Joined: 14 Jun 2006
Posts: 37

PostPosted: Wed Aug 02, 2006 10:25 am    Post subject: Resource files again.... Reply with quote

I had tried several methods without success:

1. Added WINAPP 0,0,'../../MYPROG.RC' in the source file containing the program block. (ne there are many source files in the development tree...)

2. Added MYPROG.RC' to the project and set the properties for that file to:
CustomCompilerOptions: Append
CustomSwitches: WINDOWS
ExcludeFromBuild: false

Using "Override" in CustomCompilerOptions has no effect either.

This may be a path problem....
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Aug 02, 2006 11:41 pm    Post subject: Resource files again.... Reply with quote

Clint

1. Try using
WINAPP 'C:YOUR_DIRECTORYMYPROG.RC'

2. There are no compiler options to be added for the resource file.
Instead of WINAPP you can add /WINDOWS to the Configuration Properties->Compiler Options->Miscelleous->Extra compiler options in the Project Properties dialog.
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