View previous topic :: View next topic |
Author |
Message |
clint
Joined: 14 Jun 2006 Posts: 37
|
Posted: Tue Aug 01, 2006 8:05 am Post subject: Resource files again.... |
|
|
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).
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Wed Aug 02, 2006 1:17 am Post subject: Resource files again.... |
|
|
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 |
|
|
clint
Joined: 14 Jun 2006 Posts: 37
|
Posted: Wed Aug 02, 2006 10:25 am Post subject: Resource files again.... |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Wed Aug 02, 2006 11:41 pm Post subject: Resource files again.... |
|
|
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 |
|
|
|