TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: POSTAL WILLIE
date: 1998-03-08 09:52:00
subject: TSRs

I've been trying to write a simple TSR for DOS that I saw in a book but it 
doesn't work.  I tried retyping it many times and cleaned out all of the 
syntax errors (I hope) but it still doesn't work.  I've been trying to find 
some other source code for TSRs but they're all either in Pascal or ASM.  Can 
someone hook me up with some C/C++ code for a pop up TSR or at least tell me 
where I can find some?
--- T.A.G. 2.7c Standard
This is constructed on the same base class as the other posting
of WINDERS.CPP. In this version, though, I cut back to two
window types and a listbox example. I included the ability to
use the UP, DOWN, PAGE UP, PAGE DOWN, HOME, and END keys.
ENTER will return the hi-lited entry, and ESC will return the
default entry.
This was constructed and tested with Borland C++ 3.1, so there
will need to be adjustments for output and no-scroll code if it
is to be used with another compiler. All instances of window(),
cprintf(), gettext(), puttext(), gotoxy(), clrscr(), textattr(),
and _wscroll, which are Borland specific, will need to be replaced
with an equivalent function.
> ] Some people dream in Black & White. I just dream in black...
---
---------------
* Origin: The Wizards Realm BBS 1-713-946-7315 1:106/7315 (1:106/7315)
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.