home *** CD-ROM | disk | FTP | other *** search
- ..pgno01
- ..foot60A1-##
- ..head03A■ 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.
-
- DOS Several functions that access the DOS interrupts.
-
- BIOS Several functions that uses the BIOS to access several of
- the video functions available.
- ..page
- ..head03A■ 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 a 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
- ..head04L──────────────────────────────────────────────────────────────────────
- ..head03AHistory of Revisions
-
- V3.5
- 1. Added functions to access video bios interrupts.
- 2. Added functions to access several of the dos interrupts.
- 3. Revised all source code so it could be assembled with
- either Borland's "TASM" or Microsoft's "MASM".
- 4. The pascal library now supports Turbo Pascal 6.0
-
- ..page
- ..head04L──────────────────────────────────────────────────────────────────────
- ..head03AFuture Directions
-
- If you have any enhancements you would like to see included please
- drop me a line describing the enhancement you would like to see.
-
- Please send enhancement requests to: Kevin Dahl
- 1209 Poplar St
- La Crescent, MN 55947
-
-
- Hopeful
- completion
- date Description of enhancement
- ---------- --------------------------------------------------------
- 06/30/91 define a menu system that is similar to windows and OS/2
- PM structure. Menu definition structure will probably
- resemble that of OS/2 PM.
-
- 09/30/91 write code to handle menu
-
- 03/31/92 write menu resource compiler to generate code so a
- programmer can define a menu exactly the same way a menu
- is defined for OS/2 PM.
-
- ??/??/?? Screen management system with paint program.
- The following is a list of defined functions.
-
- WinChgFld
- WinChgGlobal
- WinChgMouseDef
- WinClosep
- WinDspAllFlds
- WinDspHdrs
- WinDspOneFld
- WinDspNFlds
- WinDsp
- WinDspText
- WinGetFldPtr
- WinGetFldNumMouseIn
- WinGetFnKeyWin
- WinLoadColorTbl
- WinLoad
- WinLoadValidKeySets
- WinInitMouse
- WinMouseIn
- WinOpen
- WinRead
- WinSetColorTable
- WinSetDefltFlds
-
- The paint program is somewhat functional. It will allow
- you to define up to 99 screens in a library.
-
- Basically the paint system or forms generator will work
- something like an editor. Entering of text or field
- prompts will be free form (like a text editor).
- ..page
-