Silverfrost Forums

Welcome to our forums

Resource files again....

1 Aug 2006 7:05 #890

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

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).

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

2 Aug 2006 12:17 #893

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).

2 Aug 2006 9:25 #896

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....

2 Aug 2006 10:41 #898

Clint

  1. Try using WINAPP 'C:\YOUR_DIRECTORY\MYPROG.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.

Please login to reply.