Using the Silverfrost Resource Compiler

The .NET programmer can create Windows applications by including the WINAPP directive before the main program as follows.

WINAPP
PROGRAM Main
....
END PROGRAM Main

Although Silverfrost ClearWin+ can be used to produce Windows applications for Microsoft Windows (Win32) operating systems it is not portable to other operating systems. For portability use can be made of C# forms or Visual Basic .NET forms.

When using any of these approaches, the simplest way to include resources is to use a RESOURCES section in the FTN95 program code (see Resources in FTN95). The alternative is to make an explicit call to the Silverfrost Resource Compiler SRC on a command line.

When SRC is called it creates a permanent compilation of a 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 .NET programmers will find that they only use the following kinds of resources:

BITMAP
ICON
CURSOR
IMAGE

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 /R

This command takes the file resource.rc as input and produces an object file called resource.res. The resulting object file can then be linked with other object files using DBK_LINK or DBK_LINK2.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited