HDTenEightyP/NetNews huggingface dataset:
From: donl@glass.esd.sgi.com (donl mathis)
Newsgroups: comp.os.msdos.programmer
Subject: Re: tee for DOS?
Date: 26 Jan 93 02:45:17 GMT
Reply-To: donl@glass.esd.sgi.com (donl mathis)
Organization: Silicon Graphics, Inc.


In article <1juom5INNgak@darkstar.UCSC.EDU>, spencer@cats.ucsc.edu
(Michael Spencer) writes:
|> 
|> 
|> esova@magnus.acs.ohio-state.edu (Edward R Sova) writes:
|> 
|> >Where can I get the Unix tee command for DOS?  You can split
redirection and
|> >piping.  like maybe foo | tee > prn >logfile.  Well I'm not sure of the 
|> >syntax, and I don't care right now, but I think you see what I want.  Where
|> >is it?  Thanx
|> 
|> Roll your own. Code goes something like this:
|> 
|> while (! feof(stdin))  {
|> 	fgets (str, 255, stdin);
|> 	fputs (str, stderr);		// send to screen
|> 	fputs (str, stdout);		// send whereever directed
|> 	}
|> fflush (stderr);
|> fflush (stdout);
|> close (dup(fileno(stdout)));		// ensure flushing on stdout

Note that these are not the "tee" semantics that we all know and love.
The command line is

	tee [ -i ] [ -a ] [ file ] ...

where -i is "ignore interrupts", which we don't care about, "-a" is to
append rather than overwrite existing files, and "file" and following
are the names of zero or more files into which a copy of stdin is
written, along with being sent to stdout.

So, technically, you'd want to open a vector of zero or more files, and
write each line into each of them as well as onto stdout.  This is a
few more lines of code, but still not exactly a nightmare.

- donl mathis at Silicon Graphics Computer Systems, Mountain View, CA
donl@sgi.com
From: dmarer@td2cad.intel.com (Dennis Marer)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: Re: 386/486 Protected Mode Programming. Good books?
Date: 25 Jan 93 22:17:44 GMT
Organization: Intel Corporation, Santa Clara, CA USA

In article <1993Jan23.185446.4033@inesc.pt> cma@eniac.inesc.pt (Carlos Antunes) writes:
>I want to learn how to program the 386/486 in protected mode. Is there
>any good books out there that teach how to program the 386/486 in
>protected mode, but without using things like DPMI. I want to program
>the 386/486 for protected mode operation directly.

Suggestion - avoid 'The 80386 handbook' which was published by McGraw Hill.
It does describe very well the 386 instruction set and a general overview of
its functions, but provides only *1* example of placing the 386 into Protected
Mode.  This example was originally written for the 286 (it says so in the
book!) and only performs limited functions - single task, single segment.
The remaining 'Protected Mode' functions are written using the Phar Lap
DOS extender, and offers no insight to programming in Protected Mode.

I suggest starting with Intel's 'Microprocessor Handbook' - it's got most of
what you'll need, but probably a good book written in not so technical terms
will also help you on your way.

				Dennis Marer
				dmarer@td2cad.intel.com

-- Not speaking for Intel.
From: benti@thalia.owl.de (Stefan Benteler)
Newsgroups: comp.os.msdos.programmer
Subject: C++ & stronger code testing
Summary: FAQ for code testing in the C++ environment
Keywords: C++
Date: 25 Jan 93 17:41:36 GMT
Distribution: comp
Organization: private Org.

This may be a FAQ in this group, if there is any text availible please
let me know.
I4m planning to use the C++ environment for development. Privatly I4m
working with the C++ GNU compiler, at work there is the C 7.0 from
Microsoft installed. My question is:
Has any one experince in using the more strongly code test from a C++
Compiler (e.g. by naming the sources *.cpp in the MS environment) or
in the GNU compiler world. Or other features for building a more reliable
code that are provided by this development tools.
Thanx for reading, please ignore my worst english (no a nativ speaker).
With best wishes, Stefan
From: rmascaro@uniwa.uwa.edu.au (Robert Mascaro)
Newsgroups: comp.os.msdos.programmer
Subject: interupt vector table
Date: 22 Jan 1993 09:21:28 +0800
Organization: The University of Western Australia
NNTP-Posting-Host: uniwa.uwa.edu.au
X-Newsreader: Tin 1.1 PL5

I have a strong interest in writing software interupt handlers. I know
that dos keeps a table of 1024 bytes from 0:0 which point to the address
to jump to from servicing the interupt. My question is, I have tryed to
follow the path (using debug) of interupt 1C (second clock timer), which
by my calculations should be located at hex 0:70 (4 bytes per address *
int number). This should contain the offset address of the handler which
should point to an IRET. It seems to point to nothing. What am I doing
wrong?? could someone step me through the process in DEBUG.
Thankyou in advance,
Rob.
Xref: sparky comp.os.msdos.programmer:12482 alt.msdos.programmer:3251
From: acjbooks@citr.uq.oz.au (ACJ Books (Chris))
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: Re: 386/486 Protected Mode Programming. Good books?
Date: 26 Jan 93 20:25:08 GMT
Organization: Prentice Centre, University of Queensland

Re Virtual 86 mode, exceptions/interrupts:

Yes I think so. Have a look at them and see if detail is sufficient.

Chris.
Newsgroups: comp.os.msdos.programmer
From: books@fsunuc.physics.fsu.edu (Roger Books)
Subject: Re: What's the latest gcc / g++ for DOS?
Organization: FSU nuclear physics
Date: Mon, 25 Jan 93 17:07:50 GMT

In article <EMORENO.93Jan24213512@scheria.NMSU.Edu> emoreno@scheria.NMSU.Edu (Elena M. Castruita) writes:
>
>	Is there a program which takes in a gcc aout file and converts
>	it to an EXE file without using go32 as a front end?
>

see aout2exe.exe which comes with djgpp.

Roger
books@fsunuc.physics.fsu.edu
Xref: sparky comp.os.msdos.programmer:12376 alt.msdos.programmer:3219
From: cma@eniac.inesc.pt (Carlos Antunes)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: 386/486 Protected Mode Programming. Good books?
Date: 23 Jan 93 18:54:46 GMT
Organization: INESC - Inst. Eng. Sistemas e Computadores, LISBOA. PORTUGAL.

Hi, fellow netters.

I want to learn how to program the 386/486 in protected mode. Is there
any good books out there that teach how to program the 386/486 in
protected mode, but without using things like DPMI. I want to program
the 386/486 for protected mode operation directly.

Thank you.

Regards,
Carlos Antunes.

-- 
Carlos Antunes @ INESC - Instituto de Engenharia de Sistemas e Computadores
E-mail to cma@inesc.pt
From: bright@nazgul.UUCP (Walter Bright)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Help on Memory Manager
Date: 23 Jan 93 23:38:58 GMT
Reply-To: bright@nazgul.UUCP (Walter Bright)
Distribution: na
Organization: Zortech, Seattle

In article <1993Jan18.185050.4937@proto.com> joe@proto.com (Joe Huffman) writes:
/bright@nazgul.UUCP (Walter Bright) writes:
/>In article <1993Jan12.083016.4726@jarvis.csri.toronto.edu> parki@csri.toronto.edu (Brian Parkinson) writes:
/>/(2)  I need to have a 64K (EXACTLY) byte memory block in an
/>/application, and would like to be aligned from the base of
/>/the segment (i.e. an offset of 0 (zero) not 4 (four)), so
/>/if I just say "ptr-=4", the pointer will now be at the base
/>/of the segment, but..... is this inviting disaster ???
/>Yes, you are inviting disaster doing this.
/You can save the 4 bytes of data at the offset 'ptr - 4' then restore 
/it before you free it.  IMHO this would result in a slight risk of 
/disaster, rather than 'inviting disaster'.

Assuming, of course, that those 4 bytes do not form a link in some linked
list used by the Borland library routines, and you don't have any intervening
calls to such routines.
If you want to be sure, you'll have to look at the Borland library source.
Otherwise, call DOS directly to do your own memory allocation.
In any case, if you use those 4 bytes you will be relying on undocumented
behavior which should be avoided whenever a practical alternative exists.
From: jmilikow@csa.bu.edu (jeremy milikow)
Newsgroups: comp.os.msdos.programmer
Subject: Good assembler for 386dx?
Date: 27 Jan 93 16:28:16 GMT
Distribution: comp.os.msdos.programmer
Organization: Boston University Computer Science Department


 Could someone please give me a recommendation for a good
assembler. In my assembly language class we've been given the
option of programming on a pc instead of using the MIPS 2000
simulator running on the mainframe. Any opinions on the matter
would be greatly appreciated. Thanks.

                                    -Jeremy
Newsgroups: comp.os.msdos.programmer
From: amoroso@ghost.dsi.unimi.it (paolo amoroso)
Subject: Re: DBase-compatible Lib
Organization: Computer Science Dep. - Milan University
Date: Mon, 25 Jan 1993 15:41:55 GMT


The "SoftC Database Library" should be the library you are looking
for. The latest version is 2.0. The previous version was a shareware
product, I don't know if version 2.0 is. The street price of the
library in object form is less than $ 100.
Sorry, I do not remember any more about it because now I am at the 
University and I do not have the documentation at hand. If you want
more info, send me e-mail at my home address.

Paolo Amoroso - Via Pietro Boifava, 24 - 20142 Milano - ITALY
paolo@explora.sublink.ORG (Home) - amoroso@ghost.dsi.unimi.it (Univ.)
-- 
Paolo Amoroso - Via Pietro Boifava, 24 - 20142 Milano - ITALY
Newsgroups: comp.os.msdos.programmer
From: abigail@ramsey.cs.laurentian.ca (Shawn Abigail)
Subject: Long strings in Turbo Vision
Summary: Long strings in Turbo Vision
Keywords: turbo pascal
Organization: Dept. of Computer Science, Laurentian University, Sudbury, ON
Date: Wed, 27 Jan 1993 14:06:57 GMT


I am using Turbo Pascal 6.0 with Turbo Vision.  I want to set up
a dialog box field to input a very long string of characters
(i.e. about 5000).  I know that strings are limited to 256 characters,
and the turbo vision field is limited too.  Is there some way
around this, or will I have to input the information in several
fields and then append it all together into one array at the end?
Any suggestions would be helpful.  Please email to:

abigail@ramsey.cs.laurentian.ca

Thanks!
Shawn Abigail
From: feurer@brahms.udel.edu (Gary Alan Feurer)
Newsgroups: comp.os.msdos.programmer
Subject: Re: More Borland C/C++ troubles *sigh*
Date: 27 Jan 93 14:21:48 GMT
Distribution: usa
Organization: University of Delaware

In article <1993Jan27.063148.12119@wariat.org> erica@wariat.org (Lady of the BitMode) writes:
=>
=>Hello again ppl. I have yet another problem with Borland C/C++ 3.1, 
=>yapbc <-- nah, here it is.
=>
=>1: I'm running Dos 5.0 and windows 3.1
=>2: My computer has a Trident svga card (8900C) 1meg ram onboard
=>3: ok, I running windows and start up borland C/C++ for windows
=>4: load my project file
=>5: compile & link
=>6: run the debugger
=>7: Now, my monitor is a mess. I can't read a thing. Colored snow is
=>   all over the place.
=>8: I called borland and they tell me to download a file called
=>   sgva.zip. 
=>9: I call there BBS and I can't find the file.
=>10: HELP!; I refuse to spend anymore money on long distance calls
=>    to Borland internation. I could use the money to buy Microsoft
=>    compiler and SDK!!
=>
=>Thank you,
=>
=>Erica Ramsey

The file you want is TDSVGA.ZIP.  It contains, among others, svga.dll.  I 
downloaded this just last night and it works with my ATI Ultra Pro.

The TDASVGA.ZIP does not show up on a search for files (at least not the
way I was doing it.  Just type in the file name.  It's there.  --gary
-- 
Gary A. Feurer		    		       Instructional Technology
303B Hall Education Building			 work:   (302) 831-2751
University of Delaware				 home:   (215) 255-5124
Newark, DE  19716			         feurer@brahms.udel.edu
From: christos@kuhub.cc.ukans.edu
Newsgroups: comp.os.msdos.programmer
Subject: Causing the compter to stop from the config.sys file
Date: 22 Jan 93 05:19:25 GMT
Organization: University of Kansas Academic Computing Services

Hello there,

	 I was wondering if it is possible to cause a pause inside the 
config.sys file in a similar way we can do this in the autoexec.bat file.
I would appreciate any relevant resposne....
Feel free to send mail to 
Internet Addrees:rsl11@kuhub.cc.ukans.edu
Newsgroups: comp.os.msdos.programmer
From: jlunny@eco.twg.com (John Lunny)
Subject: Info on TSR -> database?
Keywords: TSR DATABASE
Organization: The Wollongong Group (East Coast Operations)
Date: Mon, 25 Jan 93 23:59:32 GMT

I'm a UNIX programmer with experience sending data from background
processes to databases, such as Ingres and Oracle, via the programmatic
embedded SQL feature of those products.

Does anyone have any opinions/advice on performing the same function
on a DOS system?  Specifically,

        a) A database with good APIs suited for this purpose?

        b) Which C compiler to use with that database?

        c) Is there a database server product, and what are its
           advantages/disadvantages?

        d) Good book on writing TSRs in C?

Thanks...

-- 
John Lunny
The Wollongong Group
jlunny@eco.twg.com
Newsgroups: comp.os.msdos.programmer
From: pvandoor@newssun.med.miami.edu (Pascal Vandooren)
Subject: Heard of SNAP?????
Organization: University Of Miami, Medical School
Date: Fri, 22 Jan 1993 16:44:56 GMT

If anyone heard of SNAP please send me some info on it.
SNAP is supposed to be a DOS software for networks (networking)
Thanx
Send to my email please
Pascal
From: asgeiro@dhhalden.no (ASGEIR OSTERHUS)
Subject: Q: compression source - posted autumn '92
Organization: Ostfold College
Date: Tue, 26 Jan 1993 16:48:15 GMT

I think it was on this meeting i saw a posting about sourcecode in c for 
several good file compression algoritms.

Anyone out there have something like this, or remember the address of the 
person who posted it?

All replies apreciated! mail is ok.

asgeiro@dhhalden.no
From: dsc3jfs@nmrdc1.nmrdc.nnmc.navy.mil (Jim Small)
Newsgroups: comp.os.msdos.programmer
Subject: Paradise SVGA  windows 3.1 drivers
Date: 25 Jan 93 15:39:38 GMT
Organization: Naval Medical Research & Development Command


I'm lookin for the drivers to make my windows 3.1 use the additional
modes available to my Paradise SVGA.  The drivers that came with my
card were for windows 3.0.  I also heard of additional 'fast' drivers 
that were available. 

also, anyone know where I can find the sources for the above?

-- 
I hate the 3B2
The 3B2 can bite me.
From: furballs@sequent.com (Paul Penrod)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Learning C
Date: 27 Jan 93 21:58:12 GMT
Article-I.D.: sequent.1993Jan27.215812.939
Distribution: na
Organization: Sequent Computer Systems Inc.

In article <gilligan.728160893@camelot> gilligan@camelot.bradley.edu (Edward Henigin) writes:
>In <Steve_Mech.04q2@bearsden.UUCP> Steve_Mech@bearsden.UUCP (Steve Mech) writes:
>
>>What I would like to know is how I should go about learning C. 
>
>First off, watch your margins.
>
>Secondly, I would recommend going to your local community college and
>taking a class on C.  Should be pretty cheap, and you will probably learn
>things that you may or may not learn on your own.
>
>Thirdly, get a hold of other people's sources, and look at theirs, and
>try to understand why they did what they did.  This has proven invaluable
>to me in learning just about anything.
>
>Fourthly, RTFM.  You should get about 10 pounds in docs for your compiler,
>and you can learn a lot by leafing through them, because you will pick
>up things you may later want to refer back to and use as reference in your
>projects.
>
>Fifthly, and finally, get projects of your own.  Learning by doing, I say.
>
>ed
>--

Cheaper still, and more effective...

Pick up the book "learning C" by Augie Hansen. Yes, it's a
Microsoft Press book, but it includes a tutorial disk with sample
programs and a well thought out approach that applies almost 100%
to the Borland compiler, in terms of teaching the language and it's
use.

You will still have to RTFM the Borland Manuals, but you will find
them more usefull after taking a brief trip through this course.

...Paul


-- 
--------------------------------------------------------------------
            Bureaucracy: noun, plural - Bureaucracies.
         The process of turning energy into solid waste.
---------------------------------------------------------------------
From: frisk@complex.is (Fridrik Skulason)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Unerase - how does it wor
Date: 21 Jan 93 20:31:36 GMT
Organization: Frisk Software International, Iceland

markus@clement.info.umoncton.ca (PAULIN MARC) writes:

>	Ok.  And what if you have more contiguous space than the actual file 
>size?  UNERASE will bring back a file larger than its original size?  If so, 
>unfragmenting can cause UNERASING problems too.

No, because the file size information is not deleted from the directory entry,
but only the first letter of the file name

If you are attempting to unerase files where the directory is gone for some
reason - a Trojan, for example..., you do not know the exact file size, but
(assuming the FAT is intact) it will only be rounded up in size to the nearest
multiple of cluster size.

-frisk


-- 
--
Fridrik Skulason      Frisk Software International     phone: +354-1-694749
Author of F-PROT      E-mail: frisk@complex.is         fax:   +354-1-28801
From: sill@zoe.as.utexas.edu (Daniel Sill)
Newsgroups: comp.os.msdos.programmer
Subject: mouse HELP!
Date: 28 Jan 93 14:11:00 GMT
Organization: McDonald Observatory, University of Texas @ Austin

hello all,

can someone tell me where i can find info on how
to interface with a mouse driver...

in particular, i want to know how i can tell it to go to
a differnt set of code to draw the cursor...i will be 
using a super vga mode of 640x480x256 or better...i have
all the info (and code) to draw in this mode, but i am
ignorant about mice..

email replies would be best...

thanks,

daniel sill

* "You can't have everything...where would you put it ?" * 

Daniel A. Sill    sill@zoe.as.utexas.edu
Department of Astronomy - The University of Texas @ Austin
-- 
* "You can't have everything...where would you put it ?" * 

Daniel A. Sill    sill@zoe.as.utexas.edu
Department of Astronomy - The University of Texas @ Austin
From: ardtlong@adam.adelaide.edu.au (Dale T. Long)
Newsgroups: comp.os.msdos.programmer
Subject: HELP: Reading Windows Icons in QB
Date: 26 Jan 93 10:05:58 GMT
Organization: The University of Adelaide
Distribution: world
NNTP-Posting-Host: adam.adelaide.edu.au


Would anyone know how to display Windows Icons in Quick Basic 4.5?
I intend to use GET and PUT, but if there is a better way please tell me.

Dale.
From: inkari@snakemail.hut.fi (Juha Inkari)
Newsgroups: comp.os.msdos.programmer
Subject: The IN_DOS flag and writing to disk
Date: 21 Jan 93 15:22:11 GMT
Organization: Helsinki University of Technology, Finland
Distribution: comp
NNTP-Posting-Host: lk-hp-1.hut.fi


I need advice in how to:

a) Properly interpret the IN_DOS flag under Dos 5.00.

b) Write to disk file from background interrupt. 

This is because I am making an application that will monitor a serial
port and save the data to a disk file.

I have the serial interrupt cude written, which will put incoming
characters in receive queue.  Then an interrupt handler which is
chained to the clock tick interrupt will read the receive queue and
process the data and possible put something in the send queue. Also
characters read from the receive code are put in the disk buffer (1k).
This seem to work ok.

There is yet another interrupt chained in the MS-DOS background
interrupt (0x28). This handler will do the writing to the disk file.
It checks for IN_DOS flag and if BIOS disk interrupt is executing (I
have a handler which will trap the BIOS interrupt and set a flag) and
if there is more than 512 characters in the disk buffer and if all is
ok we will open a disk file and write 512 bytes and close the disk
file.

Unfortunately, this isn't working. I am unable to open the file, and
if it has been opened before, unable to write to it.

Also the IN_DOS flag (I use Dos function 0x34 to get the flag location
returned in registers ES:BX) seems only to be zero when I have an application
running (like Borlang C++ IDE) and not when COMMAND.COM is running.

--
/* Juha.Inkari@hut.fi */
Newsgroups: comp.os.msdos.programmer
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: tee for DOS?
Organization: University of Vaasa, Finland
Date: Mon, 25 Jan 1993 09:24:40 GMT

In article <RICK.93Jan24165959@mel1.geg.mot.com> rick@mel1.geg.mot.com (Rick Rankin) writes:
>In article <1993Jan22.233913.19275@uwasa.fi> ts@uwasa.fi (Timo Salmi) writes:
>>   In article <C19yB0.AJB@vuse.vanderbilt.edu> stst@vuse.vanderbilt.edu (Stefan Strack) writes:
>>   >In article <1993Jan22.184439.27754@magnus.acs.ohio-state.edu> esova@magnus.acs.ohio-state.edu (Edward R Sova) writes:
>>   >>Where can I get the Unix tee command for DOS?  You can split redirection and
>>
>>   >TEE (as well as Y) are internal commands of 4DOS, the command.com replacement.
>>
>>   An equally useful answer surely is that tee is available for Unix.
>>   (The 4DOSsers never let up :-).
>
>The fact the tee is available for Unix is immaterial.  The man asked
>for tee for DOS.

Of course it is!  I am confident that you must have understood that
my Unix reference was meant to emphasize the futility of offering
4DOS as a solution either.  What an ordinary MsDos user usually
needs is a command.com compatible answer, not the recurring pitch to
go for another command interpreter, or another operating system.

My serious answer to the user's original question is browsing
through the list of Unix-like MsDos commands
  9906 Nov 12 10:57 garbo.uwasa.fi:/pc/unix/0unix.zip
Another serious answer is the C code that was already given by one
gentle user.  These are much better answers than implicity
suggesting changes of configuration.

..................................................................
Prof. Timo Salmi      Co-moderator of comp.archives.msdos.announce
Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
Faculty of Accounting & Industrial Management; University of Vaasa
Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
Newsgroups: comp.os.msdos.programmer
Subject: How to simulate Ctrl-Alt-[+|-]
Date: Sat, 23 Jan 93 14:31:01 CST
Organization: Villa CyberSpace, Minneapolis, MN

This motherboard I have can switch speeds from the keyboard, using
ctrl-alt-minus for slow, ctrl-alt-plus for fast and ctrl-alt-esc to use
the turbo switch selection.  I never really played with the option
before, but now I need to change speeds inside a batch file.  4dos
keystack won't do the key combinations, and I would imagine DOS never
sees them anyway... surely the BIOS eats the key sequence.

Can I get my keyboard to act on its own?  This is an XT (with a 286, but
only an 8-bit bus).  Can the keyboard be manipulated from the computer?
It's an XT/AT switchable keyboard, if that makes a difference.

Thanks in advance for any pointers in the right direction.
--
Roy M. Silvernail --  roy%cybrspc@cs.umn.edu - OR-  cybrspc!roy@cs.umn.edu
  perl -e '$x = 1/20; print "Just my \$$x! (adjusted for inflation)\n"'
          "Does that not fit in with your plans?"
                      -- Mr Wiggen, of Ironside and Malone (Monty Python)