home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
flash-c1.zip
/
CH1_1.DOC
< prev
next >
Wrap
Text File
|
1990-02-11
|
4KB
|
122 lines
■ INTRODUCTION
This is a reference manual for the FlashPac C library. This
implementation is for use with Microsoft or Turbo C in the PC-DOS
operating system. A working knowledge of C and personal computers
is assumed.
The routines that are included here were created to provide a
programmer with low level routines that access the video display,
keyboard, printer, disk, and mouse devices. These routines are not
intended to replace the standard features of C. They were created
to add to and extend to the C programming environment for MS-DOS and
PC-DOS operating systems.
In order to lessen the confusion of using these routines the number
of global variables needed for use with this library has been kept
to a minimum. All the functions in the library were written in
assembly language using the pascal parameter passing conventions.
The library contains routines for the disk, keyboard, mouse, printer
and video display devices, as well as a couple of DOS functions.
The header file FPCLIB.H contains all of the function and variable
declarations needed for this library.
DISK Supports several DOS function calls that use byte streams
when accessing disk files.
GETKEY Required for EditSt.
KBD Supports BIOS and DOS keyboard function calls.
MOUSE Supports basic mouse functions, including a mouse event
handler.
PRT Support BIOS printer functions.
VIDEO Several video routines that provide direct access to the
video display. Routines include saving and restoring the
screen, framing windows, setting the absolute position of
the cursor, etc.
..page
■ Installation
The FlashPac C library consists of two files:
■ FPCLIB.H
■ FPCLIB.LIB
Place the header file "FPCLIB.H" in the same subdirectory that
contains your other header files and place "FPCLIB.LIB" into the
same subdirectory that your other library files are in. You are now
ready to use the FlashPac C library.
■ Compiling and Linking a test program
To compile and link "DEMO.C" and "GETKEY.C" modules use the
instructions for the appropriate compiler.
■ Turbo C:
Integrated environment:
1. Select the large memory model under the Options, compiler
menu.
2. Create a project file with the following three lines:
demo (demo.c)
getkey (getkey.c)
fpclib.lib
3. Select the project file under the compile menu option select
build all to create an executable file called demo.exe
Command Line:
C>tcc -IC:\INC -LC:\lib -ml demo.c getkey.c \lib\fpclib.lib
-IC:\INC C:\INC is the include subdirectory for header files
-LC:\LIB C:\LIB is the library subdirctory for Turbo C
libraries
-ml selects large memory model
\lib is the subdirectory where fpclib.lib is located
■ Microsoft C:
C>cl /AL /F 4000 demo.c getkey.c \lib\fpclib.lib
/AL selects large memory model
/F 4000 create an 16K stack area
\lib is the subdirectory where fpclib.lib is located
..page
..head02L----------------------------------------------------------------------
..head04L----------------------------------------------------------------------
..head03ASample
■ Description
What the function does
■ Summary
Function declaration with parameter list.
Parm1 Parm1 description.
Parm2 Parm2 description.
■ Remarks
General comments.
■ See Also
Related functions
■ Example
Sample program or code fragment.
..page