Stephen Potter, November 2002

Notes on generating an IX .exe file.

The files in this directory relate to the construction of an executable 
file ix.exe for the IX system. This executable also includes a relevant 
icon.

The executable was built using the command-line C++ compilers and tools 
(v5.5) available (free) from Borland: see www.borland.com.

The important files are as follows:

* ix.cpp - the c++ source of the executable. This code is very simple, 
merely changing to the appropriate relative directory, (currently:
apps/ime/scripts/win) and then invoking, via a system call, the
appropriate batch file (ime.bat). The one unusual element of this
file is the preamble:

  #pragma resource "ix.res" 

this is a command to the Borland compiler to indicate that Windows
resources for this application are to be found in the file ix.res.

* ix.rc - this file contains a statement of the resources for the
executable: it will be compiled into the ix.res file. Currently
it consists of a single line detailing the nature of the icon
resource:

  IDI_ICON1                ICON    DISCARDABLE     "ix.ico"

where "ix.ico" is the name of the icon file.

* ix.ico - this is the intended icon file (in Windows icon format).



To build the executable, then, the following commands are necessary
in the following order:

> brcc32 ix.rc
this invokes the Borland resource compiler shell, producing ix.res.

> bcc32 ix
this invokes the Borland C++ compiler, links in ix.res, and produces
the desired file ix.exe

