Resources in FTN95

In this section:

Using FTN95, it is possible to append resource directives to the end of a program using the RESOURCES directive. Everything after this directive (up to the end of the file) is treated as resources and passed to the SRC command. The result is combined with the object code produced by FTN95. In order to use the RESOURCES directive, the SRC command must be available on the PATH. All the resources for a program must be supplied in one place.

Here is a simple example:

   WINAPP
   INTEGER i,winio@
   i=winio@('%ca[A beautiful bitmap]&')
   i=winio@('%bm[mybitmap]%2nl%cn%`bt[OK]')
   END
   RESOURCES
     mybitmap BITMAP c:\bitmaps\pic1.bmp

 

It is important to note that the RESOURCES directive will only work when either /LINK or /LGO is used on the FTN95 command line. As a result, the directive will not work in a Plato project. When using Plato in "project" mode (rather the single file mode) the resources must be listed in a .rc resource script which must be added to the list of "Source files" in the "Project Explorer" window.

File names that contain spaces must be enclosed in double quotes.

The SRC compiler processes strings as C strings where the backslash is an escape character. So a backslash in the path for a file must appear as "\\".

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited