Using the Silverfrost Resource Compiler

In this section:

If a program uses a resource script and neither of the compiler options /LGO and /LINK are used to compile and link the program, then the Silverfrost Resource Compiler SRC must be used to compile the resource script. An alternative method can also be used with FTN95 (see Resources in FTN95).

When SRC is called it creates a permanent compilation of the resource script. With a few exceptions and a few additions, SRC uses the same resource script syntax as the Microsoft Resource Compiler RC. However, most ClearWin+ programmers will find that they only use the following kinds of resources:

BITMAP
ICON
CURSOR
GIF
HYPERTEXT
SOUND

Once a resource script has be written, it should be stored in a file with the .RC extension. The resource can then be compiled with a call to SRC of the form:

SRC RESOURCE

This command takes the file resource.rc as input and produces an object file called resource.obj. This means that resource must not be used as the stem for both a Fortran filename and resources in the same directory and project. The resulting object file can then be linked with other object files using SLINK as follows.

SLINK
LO MYAPP
LO RESOURCE
FILE

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited