This directory contains the files for the sample
distributed application "factl":

File          Description

README.TXT    Readme file for the FACTL sample
FACTL.IDL     Interface definition language file
FACTL.ACF     Attribute configuration file
FACTLC.C      Client main program
FACTLS.C      Server main program
FACTLP.C      Remote procedures
GLOBALS.C     Contains declarations for all globally scoped names
MAKEFILE      Nmake file to build for Windows NT
MAKEFILE.DOS  Nmake file to build for MS-DOS

-------------------------------------------
BUILDING CLIENT AND SERVER APPLICATIONS FOR
MICROSOFT WINDOWS NT:
-------------------------------------------

The following environment variables should be set for you already.       
  set CPU=i386                                                           
  set INCLUDE=c:\mstools\h                                               
  set LIB=c:\mstools\lib                                                 
  set PATH=c:\winnt\system32;c:\mstools\bin;

For mips, set CPU=mips                                                   

Build the sample distributed application:
  nmake cleanall
  nmake

This builds the executable programs factlc.exe 
(client) and factls.exe (server).

If debugging information is desired, remove comments on line containing
'#define FACTL_DEBUG' located in GLOBALS.H file or build sample application
in the following manner:

  nmake cleanall
  nmake DEBUG=-DFACTL_DEBUG

-----------------------------------------------------------------------
BUILDING THE CLIENT APPLICATION FOR MS-DOS
-----------------------------------------------------------------------

After installing the Microsoft Visual C/C++ version 1.50 development 
environment and the Microsoft RPC version 2.0 toolkit on a Windows NT
computer, you can build the sample client application from Windows NT.

  nmake -f makefile.dos cleanall
  nmake -f makefile.dos

This builds the client application factlc.exe.

You may also execute the Microsoft Visual C/C++ compiler under MS-DOS.
This requires a two step build process.

  Step One: Compile the .IDL files under Windows NT
     nmake -a -f makefile.dos factl.h

  Step Two: Compile the C sources (stub and application) under MS-DOS.
     nmake -f makefile.dos

If debugging information is desired, remove comments on line containing
'#define FACTL_DEBUG' located in GLOBALS.H file. 

------------------------------------------
RUNNING THE CLIENT AND SERVER APPLICATIONS
------------------------------------------

On the server, enter

  factls

On the client, enter

  net start workstation
  factlc

Note:  The client and server applications can run on
the same Microsoft Windows NT computer when you use
different screen groups.

