⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcxlqref.doc

📁 就一个字强.很不错,希望大家能喜欢.这是我朋友发给我的
💻 DOC
📖 第 1 页 / 共 2 页
字号:

                            TCXL Quick Reference
                            --------------------

TCXLDEF.H   - Miscellaneous Functions
-------------------------------------

void beep(void);
sounds a beep in the speaker

char *biosver(void);
returns the BIOS version date

int clockcal(void);
determines if a clock-calendar board is installed

void delay_(unsigned duration);
delays program execution for a specified time period

unsigned expmem(void);
determines the amount (if any) of expanded memory on the system

unsigned extmem(void);
determines the amount of extended memory on an AT machine

int gameport(int equip);
determines if a game port is installed

int machid(void);
returns the value of the machine ROM ID byte

int mathchip(int equip);
determines if a math coprocessor is installed

int numflop(int equip);
returns the number of floppy disk drives installed

int numpar(int equip);
returns the number of parallel ports

int numser(int equip);
returns the number of serial ports installed

void sound_(unsigned pitch,unsigned duration);
sounds a tone in the speaker for specified pitch and duration

int tabstop(int col,int tabwidth);
calculates a tab stop from given column and tab width

unsigned long timer(void);
returns the value of the BIOS timer








                                      1    


TCXLDSK.H   - Disk Functions
----------------------------

int disktoscrn(char *fname);
copies a saved screen disk file to screen

int disktowin(char *fname);
copies a saved window disk file to screen

int fcmpdatm(char *fname1,char *fname2);
compares the dates and times of 2 files

int fexist(char *fname);
determines if a disk file exists

int fhide(char *filename);
hides a disk file

unsigned getktot(int drive);
gets the total disk space in kilobytes

char *getvol(char drive);
gets the volume label from a disk drive

int scrntodisk(char *fname);
copies the current screen to a disk file

int wintodisk(int srow,int scol,int erow,int ecol,char *fname);
copies a window of the screen to a disk file




























                                      2    


TCXLEMS.H   - EMS Functions
---------------------------

unsigned emsalloc(int numpages);
allocates pages of EMS memory

int emsdealloc(int handle);
deallocates previously allocated pages of EMS memory

int emsexist(void);
determines if the EMS device driver is loaded.

unsigned emsframe(void);
returns the EMS page frame base address

unsigned emsfree(void);
returns the number of free EMS pages (16K blocks)

int emsmap(int handle,int lpage,int ppage);
maps a logical EMS page onto a physical page address

int emsread(void *dest,unsigned emsofs,unsigned numbytes);
reads bytes from an EMS page(s)

unsigned emstotal(void);
returns the total number of EMS pages (16K blocks) on the system

char *emsver(void);
returns the current EMS version

int emswrite(void *src,unsigned emsofs,unsigned numbytes);
writes bytes to an EMS page(s)

unsigned expmem(void);
determines the amount (if any) of expanded memory on the system






















                                      3    


TCXLKEY.H   - Keyboard Functions
--------------------------------

void capsoff(void);
toggles the CapsLock key off

void capson(void);
toggles the CapsLock key on

void clearkeys(void);
clears the keyboard buffer

int getchf(char *valid);
gets a character from the keyboard from a list of valid characters

int getns(char *str,int max);
inputs a string of specified length from the keyboard

void getxch(int *ch,int *xch);
gets a key (ASCII code/extended ASCII code) from the keyboard

int inputsf(char *str,char *fmt);
inputs a formatted string from the keyboard

int kbstat(void);
returns the status of the keyboard control keys

void numoff(void);
toggles the NumLock key off

void numon(void);
toggles the NumLock key on

void prompts(char *prompt,char *str);
prompts for a string and accepts keyboard input

int waitkey(void);
halts execution until a key is pressed, the keyboard buffer is cleared first

int waitkeyt(int duration);
halts execution until a key is pressed or specified time expires
















                                      4    


TCXLMOU.H   - Microsoft Mouse Functions
---------------------------------------

void msbpress(int button,int *bstat,int *bcount,int *x,int *y);
gets info about specific button presses of mouse

void msbreles(int button,int *bstat,int *bcount,int *x,int *y);
gets info about specific button releases of mouse

void mscursor(int curtype,int smask,int cmask);
sets the mouse cursor mode

void msgotoxy(int x,int y);
sets the mouse coordinates

void mshbounds(int left,int right);
sets the mouse horizontal bounds

void mshidecur(void);
hides the mouse cursor

int msinit(void);
initializes mouse/determines if present

void msmotion(int *xcount,int *ycount);
gets info about movement of mouse

void msshowcur(void);
reveals the mouse cursor

void msspeed(int xratio,int yratio);
adjusts the mouse sensitivity

void msstatus(int *bstat,int *x,int *y);
gets the mouse status

void msvbounds(int top,int bottom);
sets the mouse vertical bounds



















                                      5    


TCXLPRN.H   - Printer Functions
-------------------------------

void lcrlf(void);
prints a carriage return and line feed on the printer

void lprintc(int ch);
prints a character on the printer

void lprintf(const char *format,...);
sends formatted output to the printer

void lprintns(char *str,int width);
prints a string on the printer, formatting width

void lprints(char *str);
prints a string on the printer

void lprintsb(char *str,int reps);
prints a bold-faced string on the printer

void lprintsu(char *str);
prints an underlined string on the printer

void scrndump(void);
dumps the current screen to the printer































                                      6    


TCXLSTR.H   - String and Character Functions
--------------------------------------------

int cvaltype(int ch,int ctype);
tests a character with character type code, checking validity

char *strbmatch(char *str,char *strarr[]);
returns the best match of a string in an array of strings

char *strchg(char *str,char oldch,char newch);
changes all matching characters in a string to another

char *strcode(char *str,int key);
encodes/decodes a string

char *strdel(char *substr,char *str);
deletes a substring from within a string

char *strichg(char *str,char oldch,char newch);
changes all matching characters in a string to another, ignores case

char *stridel(char *substr,char *str);
deletes a substring from within a string, ignores case

char *striinc(char *str1,char *str2);
determines if one string is included in another, ignores case

char *strinc(char *str1,char *str2);
determines if one string is included in another

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -