Silverfrost Logo About Us | Contact Us
 

Resources in FTN95

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

 

 

Copyright © 1999-2017 Silverfrost Limited