HDTenEightyP/NetNews huggingface dataset:
From: je@unix.brighton.ac.uk (John English)
Newsgroups: comp.os.msdos.programmer
Subject: How big is my BC++ program?
Date: 14 Dec 92 10:28:04 GMT
Organization: University of Brighton, UK

I want to write a TSR wrapper class in Borland C++, but need to know
how much memory to reserve.  Is there an easy way of finding this?
I've tried _psp, environ, _SS and _stklen in various combinations
but can't seem to get the right answer.

Any help *greatly* appreciated.
E-mail replies please to je@unix.brighton.ac.uk.
-- 
-------------------------------------------------------------------------------
John English			| Fudd's first law of opposition:
Dept. of Computing		|    If you push something hard enough, it
University of Brighton		|    *will* fall over.
E-mail: je@unix.brighton.ac.uk	| Testlicle's deviant to Fudd's law:
Fax:    0273 642405		|    What goes in, must come out.
-------------------------------------------------------------------------------
Newsgroups: comp.os.msdos.programmer
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Normal MSDOS multitasking!
Organization: Queen's University
Date: Tue, 15 Dec 1992 14:41:12 GMT

In article <9212142475@fcshome.UUCP> fredex@fcshome.UUCP (fred smith) writes:
>MS-DOS is too stupid to multitask. It lacks the facilities. 

Yes.

>on Unix, the same thing is literally done by running
>two programs "at the same time" with the output of the first going
>to the input of the second. BUT NOT ON DOS which is fundamentally
>incapable of doing that.

No, it's just that you don't have the right software.  There are several 
multitaskers which sit on top of DOS and make it multitask.  Windows is one, 
Desqview is another.  I don't know if anyone has bothered to make pipes
work the way they do on Unix.  Windows has more or less given up on that 
method of file management, so you're not likely to see it there.  I heard 
last year that someone intended to do it for Desqview, but I don't know if 
they ever published the results.

The number of times where it really matters whether two programs are run 
concurrently at half speed or sequentially at full speed is so tiny, that I 
doubt if it's on anybody's "10 most important projects" list.

Duncan Murdoch
dmurdoch@mast.queensu.ca
From: einari@rhi.hi.is (Einar Indridason)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Normal MSDOS multitasking!
Date: 14 Dec 92 13:20:37 GMT

In <1ghb1vINNccb@ub.d.umn.edu> cbusch@ub.d.umn.edu (Chris) writes:


>   Apparantly MSDOS multitasks with the use of the pipe "|".  Is this
>true?  How does the | really work?  For example: "type this.txt | more"
>has 'type' and 'more' being ran simultaneously (apparantly).  How is
>this so?

No, that is not a multitasking.  MeSsy-DOgS handles the pipe line with
something like this:
Run first program to completion, with standard output redirected to a 
temporary file.
Wait until first program has finished.
Run second program to completion, with standard input redirected to come
from the previous temporary file, and if there is more in the pipeline,
redirect the standard output to another temporary file.
Wait until second program has finished.
Do the following programs in the pipeline, in the same way:  Run one
program at a time to completion, _then_ start the next one.


--
einari@rhi.hi.is
Newsgroups: comp.os.msdos.programmer
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Calling convention: C vs PASCAL
Organization: Queen's University
Date: Mon, 14 Dec 1992 13:45:05 GMT

In article <1992Dec14.124529@cs.utwente.nl> fijma@cs.utwente.nl (Duco Fijma) writes:
>|> it's up to the called routine.  It's this difference that gives the Pascal 
>|> convention the edge:  every time you call a C-convention routine you need to 
>|> fix up the stack afterward, while a Pascal-convention routine does 
>|> it in just one place.  On a PC, there's even a special form of RET to 
>|> support the Pascal convention.  
>
>Waht difference does this make for execution time? The cleanup code has to be
>executed for every invocation, whether it is included with the callers or the
>called code. Of course it does make difference for the code size.

A Pascal routine with 20 bytes of parameters can return and clean up with 
the single instruction:

     retf 20

On all 80x86 cpus, this takes the same time (plus or minus a cycle) as the 
plain retf.  The advantage comes because that's all that's needed; a return 
from a C convention routine must be followed by manual adjustment of 
the stack pointer.

Duncan Murdoch
From: John.Gibney@f386.n632.z3.fidonet.org (John Gibney)
Newsgroups: comp.os.msdos.programmer
Subject: Re: dos console output
Date: Tue, 15 Dec 1992 13:46:04

In a message originally to All, homer@theory.tc.cornell.edu says:

 Ho> I am using fortran CALL FSYSTEM ('DOS COMMAND')
 Ho> to run various dos commands like MKDIR etc.  How do I get
 Ho> DOS to NOT write to the console during such operations, the
 Ho> console will be used for graphics application.  
 Ho> 
 Ho> For example if you copy a file, it always says '1 file copied.'

Uhmm...  have you tried:-

        CALL FSYSTEM ('mkdir MYDIR > nul')

Any output from the spawned command should end up in the NUL
device... at least, that's what happens when I do things at
the DOS prompt.


John  :-)
___ Blue Wave/QWK v2.10

 * Origin: Eastern Mail Centre [PEP] OZ. +61-3-725-1621 (3:632/386)
From: guac@brt.deakin.edu.au
Newsgroups: comp.os.msdos.programmer
Subject: Help : Redirect a file
Date: 14 Dec 92 11:43:53 EST
Organization: Deakin University, Melbourne
NNTP-Posting-Host: vax2.viccol.edu.au

Hi Netter,

I need a function in DOS 3.3 which redirect a print document to a file if
there is no printer attached for the PC (or laptop). (i.e. It does not stop
at "Retry Abort Fail ?")

Anyone can give me any suggestion ?

Thanks in advance !

Cathy
From: nelson@crynwr.com (Russell Nelson)
Newsgroups: comp.os.msdos.programmer
Subject: Network Redirector (Int 2f, Fcn 11h) 
Distribution: world
Date: Tue, 15 Dec 92 19:32:43 GMT
Organization: Crynwr Software

In article <Bz9Kyw.zI@xetron.com> alb@xetron.com writes:

   I am in a position in which I have to implement my own file system
   under DOS    5.0. This file system would be used for one device
   only (the normal DOS drives  would also be available).  The
   obvious way to do it is to place myself above DOS (Int 21), like
   Netware does.  However, it seems like it might be easier to create
   my own "Network Redirector" as described in the Schulman's
   "Undocumented   DOS" book.

   Has anyone successfully used this interface (Int 2F, Function 11) to
   create their own "Network Redirector" file system (besides
   the big guys)?  Is it documented anywhere besides Schulman's book?

Yes, and no.  Undocumented DOS provides enough information to use the
redirector interface.  Do it.  Just make sure you don't screw up like
Microsoft did with Windows for Workgroups and stomp on someone else's
redirector.

-russ <nelson@crynwr.com> What canst *thou* say?
Crynwr Software           Crynwr Software sells packet driver support.
11 Grant St.              315-268-1925 Voice  |  LPF member - ask me about
Potsdam, NY 13676         315-268-9201 FAX    |  the harm software patents do.
From: thx1138@angus.mi.org (Scott Abfalter)
Newsgroups: comp.os.msdos.programmer
Subject: PC/TCP
Date: 17 Dec 92 19:06:33 GMT
Reply-To: thx1138@angus.mi.org
Organization: North Star BBS


 
I _did_ put the PC/TCP include directories ahead of the others.  But 
they made changes to these and it makes the rest of our program unhappy.
Our platform is huge and I'm not too happy about reworking everything 
that their include files mess up. 

In any event, it looks as if we are going to go with Novell's LAN
Workplace for DOS Toolkit and their Berkeley socket API.  They have a
limit of 64 open sockets which was a disappointment, but it looked very
complete.  Have you had any experience with Novell's product???

THX

--
Scott Abfalter (thx1138@angus.mi.org)
North Star BBS, Royal Oak, MI --------------------------------------------+-
From: aki@cruzio.santa-cruz.ca.us
Newsgroups: comp.os.msdos.programmer
Subject: PS/2 CMOS Contents...
Keywords: CMOS RAM, PS/2, IBM
Date: 12 Dec 92 05:24:37 GMT
Reply-To: aki@cruzio.santa-cruz.ca.us


I just noticed that I need to find the use of CMOS RAM locations
in PS/2 computers (Model 50+).  IBM will gladly inform me for the
minimamal ( :) ) cost of $100+.  That's why I'd like to look
around and see if I can find the same data someplace else for less
$$$. Anyone know good docs, books, documentation, files... ANYTHING
that would have the CMOS data in it??

I am very grateful for any help on this.

Aki.
-- 
/  Phone: 408-662 9664   Fax: 662 9676  |  586 is a 586 no matter what  \ 
\  125 Searidge Ct #D, Aptos, CA 95003  |  Intel seez.  "Pent... WHAT?" /
Newsgroups: comp.os.msdos.programmer
From: bussiere@garrot.DMI.USherb.CA (Luc Bussieres)
Subject: How could I copy protect Borland C++ on a network ?
Originator: bussiere@garrot
Organization: Universite de Sherbrooke, Dept. de Mathematiques et
	d'Informatique.
Date: Thu, 17 Dec 1992 20:07:36 GMT

	We are in the process of evaluating different network
alternatives for our students labs. I have installed Borland C++ 3.1
on an nfs disk, and it is working perfectly. Now I'm trying to find a
way to restrict the copying of the executable files so that the
students won't be able to pirate it and to copy it to there home pc. I
have modify bc.exe with chmodd to execute only, I have try this with
other executable and it is working correctly. When I do this Borland
C++ is crashing, it seems that I need to read its own executable. 

Is there a way to protect Borland C++ from pirating on an nfs disk? 

Does novell as a copy protection feature that will work with Borland C++?

Is the only way to protect it is to ask the student to not copy it ?


			Thanks.
-- 
Luc Bussieres ---- Analyste - Dept. de Mathematiques et d'Informatique
Universite de Sherbrooke     
Internet : luc.bussieres@dmi.usherb.ca
Tel: (819) 821-7981
Newsgroups: comp.os.msdos.programmer
Subject: Code Configuration Control
From: vickers@trident.datasys.swri.edu (David Vickers)
Date: 17 Dec 92 19:20:54 GMT
Followup-To: dvickers@swri.edu
Distribution: usa
Organization: Southwest Research Institute, San Antonio
Keywords: configuration control



I am looking for some information about existing source code
configuration management programs for PCs.  I checked the FAQ and
the only configuration management program listed is a PC version of
RCS.  I'm interested in comments on commercial programs, as well as
public domain programs.  I would like to get some comments from
people using them or some references to books or articles where I
can get more information about whatever is available.

The application will be a for PC based systems and will be written
by several developers using C++.  The developers PCs will be
interconnected via a LANTASTIC network.

If I get an interesting set of replies, I'll send them in for the
FAQ or post a summary.  Send replies to dvickers@swri.edu.

                                    Thanks
From: ekalenda@netcom.com (Edward J Kalenda)
Newsgroups: comp.os.msdos.programmer,comp.windows.ms.programmer
Subject: Re: Two Joystick Port prob
Date: 14 Dec 92 20:51:22 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

From article <1992Dec10.205227.14353@news2.cis.umn.edu>, by mcgrath@staff.tc.umn.edu ():
>      I have a compatible with a built-in joystick port and a Sound Blaster Pro
> with its joystick port, but they both, apparently, want to be port #1 at the
> same time.  Is there any way I can configure one to be port #2 via software
> (or hardware, if it just involves some switch settings)?  Do I have to get
> a Y-adapter?  Tell me I don't. 8)
> 
>      -Mike McGrath

You can have only one joystick device in your system. Disable the port on
your system board if you can, or on the SB. Yes, you need to get a Y-adapter
if you want to use two joysticks.

The problem is that the DB-15 port has connections for two joysticks. The
hardware does not treat them as seperate devices, like serial ports. What
the hardware really sees is four buttons and four potentiometers. It is up
to software to seperate them into two joysticks.
-- 

Ed
ekalenda@netcom.COM
From: scott@mycro.UUCP (Scott C. Sadow)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Help: How to (not) identify a network drive
Date: 19 Dec 92 16:07:30 GMT

In article <1992Dec16.141307.3469@ugle.unit.no>, news@ugle.unit.no (NetNews Administrator) writes:
>I've written a device driver implementing a RAM disk. The driver uses
>an add-on board with up to 320 MB DRAM for storage. My problem is,
>MS-DOS has got this stupid idea it is a network drive, and certain
>programs (e.g. CHKDSK, Norton Disk Doctor ) does not accept the disk.
>Could anyone out there help me with the following, please:
>
>How does MS-DOS identify a network drive?
>
>Why is my drive identified as a network drive when the Media Descriptor
>Byte i return says "Fixed disk" (0f8h)?
>
>How do i get MS-DOS to understand "the true nature" of my driver?
>

For a block device, bit 12 of the device driver attribute word is set if
the drive is a network drive, and reset if local drive. Make sure that bit
is reset. (To double check, I just changed my local drives to network
drives by setting that bit in their device driver attribute word)


   Scott C. Sadow
   scott@mycro.UUCP
   ...gatech!nanovx!mycro!scott
From: Jon Freivald <jaf@jaflrn.UUCP>
Newsgroups: comp.os.msdos.programmer
Subject: Re: Normal MSDOS multitasking!
Date: Tue, 15 Dec 92 18:04:38 EST
Organization: The Wizzard's Cave, East Meadow, NY

cbusch@ub.d.umn.edu (Chris) writes:

>    Apparantly MSDOS multitasks with the use of the pipe "|".  Is this
> true?  How does the | really work?  For example: "type this.txt | more"
> has 'type' and 'more' being ran simultaneously (apparantly).  How is
> this so?

It is not so -- what's really happening is that DOS is writing the
output to a temp file, reading input from the temp file, then deleting
it.  To use your own example, "type this.txt | more" is actually doing:

     type this.txt > tempfil.fil
     more < tempfil.fil
     del tempfil.fil

DOS obviously uses different names than "tempfil.fil", usually something
looking like "2DA472AF" or some other such unique nonsense.  You can
verify this behavior by running an unerase program in the directory
pointed to by your TEMP environment variable (or the root of your boot
drive if you don't have a TEMP variable).

Hope this clarifies the issue.

Jon

=============================================================================
                   Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
	 Nothing is impossible for the man who doesn't have to do it.
=============================================================================
Lines: 18
Date: Wed, 16 Dec 92 15:08:25 MST
Newsgroups: comp.os.msdos.programmer
From: $dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS)
Subject: SIMPLE assembly question...
Keywords: assembly mov asm 
Organization: Brigham Young University


Here is a simple one:

is there ANY difference between  MOV ES,AX

and                              PUSH AX
                                 POP ES
 
(besides the fact that the stack pointers get moved a little)???

Does this affect ANY flags?

Thanks!

____

Douglas R. Nebeker         Internet: $dougn@sasb.byu.edu
Organization: Penn State University
Date: Thu, 17 Dec 1992 10:59:26 EST
From: <GNR100@psuvm.psu.edu>
Newsgroups: comp.os.msdos.programmer
Subject: TSRs in Structured Code?

    Is there a way to write TSRs in a structured language (C, for instance),
or does that have to be done in assembler?

                    Gordon Rogers
                    gnr100@psuvm.psu.edu
Newsgroups: comp.os.msdos.programmer
Subject: Re: certification
From: a_rubin@dsg4.dse.beckman.com (Arthur Rubin)
Date: 18 Dec 92 23:51:15 GMT
Organization: Beckman Instruments, Inc.

In <1992Dec18.182758.29345@mksol.dseg.ti.com> mccall@mksol.dseg.ti.com (fred j mccall 575-3539) writes:

>In <a_rubin.724032404@dn66> a_rubin@dsg4.dse.beckman.com (Arthur Rubin) writes:

>>>Are you a senior programmer, doing internal program design, 
>>...

>>>The Institute for Certification of Computer Professionals
>>>(ICCP) has established recognized professional standards 
>>>within the data processing/information technology industry.
>>>To qualify for an ICCP designation, candidates must meet 
>>>professional requirements and pass a combination of 
>>>certification exams.  ICCP exams are offered twice annually 
>>>worldwide. 

>>Why should programmers care?  What benefit is it?

>It is practically all MIS based.  If you're not a business center PA,
>you probably SHOULDN'T care.

Good.  We have quality control, of course, but programmer certification
(IMHO) doesn't serve a useful purpose.
--
Arthur L. Rubin: a_rubin@dsg4.dse.beckman.com (work) Beckman Instruments/Brea
216-5888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal)
My opinions are my own, and do not represent those of my employer.
My interaction with our news system is unstable; please mail anything important.
Newsgroups: comp.os.msdos.programmer
From: alb@xetron.com (Al Brunck)
Subject: Network Redirector (Int 2f, Fcn 11h)
Organization: Xetron Corporation, Cincinnati, Ohio
Date: Mon, 14 Dec 1992 19:32:55 GMT


I am in a position in which I have to implement my own file system under DOS 5.0.
This file system would be used for one device only (the normal DOS drives 
would also be available).  The obvious way to do it is to place myself above
DOS (Int 21), like Netware does.  However, it seems like it might be easier to
create my own "Network Redirector" as described in the Schulman's "Undocumented
DOS" book.  Apparently, Microsoft uses this for CD-ROM systems and network
interfaces.  But the MS-DOS Programmer's Reference does not document it
(although it is mentioned).

Has anyone successfully used this interface (Int 2F, Function 11) to
create their own "Network Redirector" file system (besides
the big guys)?  Is it documented anywhere besides Schulman's book?  Any
information on experience with this interface would be appreciated.  Thanks.


Newsgroups: comp.os.msdos.programmer
From: chelf@lunatix.uucp (Chad Helfenberger)
Subject: Wacky cursor on Oak/67
Organization: Lexington Public Access Unix. -KY- (606) 255-9121
Date: Wed, 16 Dec 1992 22:20:20 GMT

Perhaps someone can explain something for me.  I have an Oak/67 SVGA card 
w/1mb.  When I use the vgamode.exe program which came with it to switch to 
anything higher than 80x43 (namely, 80x60, 123x*), the cursor is always one 
character to the left of the _true_ location.  Is there any way to remedy 
this?  Also, programs which use standard VGA 80x50 mode (text) don't induce 
this problem.  It's only when I use the supplied vgamode utility.  Thanks 
for any insight.


-- 
Chad Helfenberger
(chelf@lunatix.uucp)
From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Normal MSDOS multitasking!
Date: Wed, 16 Dec 92 22:59:22 CST
Organization: Villa CyberSpace, Minneapolis, MN

bern@Uni-Trier.DE (Jochen Bern) writes:

> Another Proof: Try Piping when you "are" currently on a write-protected Flopp
> Will fail with "write Error".

Depends on your command processor.  4dos puts its tempfiles in a single,
known directory on your hard drive.  Handy feature, that.

That also means the 'DIR | MORE' example wouldn't be obviously
successful in 4dos, because the tempfiles are likely to be in a
different directory.
--
Roy M. Silvernail --  roy%cybrspc@cs.umn.edu - OR-  cybrspc!roy@cs.umn.edu
   "I like Santa Claus as well as the next guy, but do you really want a
   hard drive that's spent 6000 miles at the bottom of a canvas sack in a
            wooden sleigh powered by airborne reindeer?" -- me
Newsgroups: comp.os.msdos.programmer
From: jrv@truth.mitre.org (Van Zandt)
Subject: Re: DOS day of week program
Organization: The MITRE Corp., Bedford, Ma.
Date: Wed, 16 Dec 1992 17:40:44 GMT

In article <1992Dec10.114342.2972@bvc.edu> mark@bvc.edu writes:
>
>	I am using the script language found in the communications
>package "Hyperaccess 5". Is there a simple program I can use at the
>DOS prompt to get the day of the week into the program or a file. 

You can start with 
	echo.|date

                                 - Jim Van Zandt <jrv@mitre.org>


Newsgroups: comp.os.msdos.programmer
From: slindsay@nyx.cs.du.edu (Steve Lindsay)
Subject: Difference between "ESC" and "8"  ??
Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
Date: Sat, 19 Dec 92 04:46:54 GMT


I am using getch from Borland C++ 3.1 and I can not
tell the difference between the "ESC" key and the 
"8" key.  When I tell it to do this if I hit the ESC key
it also will do it if I hit the 8 key.  Anyone with ideas
of how to make it tell the difference.

Thanx for the help.........steve

Newsgroups: comp.os.msdos.programmer
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Subject: Re: SIMPLE assembly question...
Date: Sat, 19 Dec 1992 12:31:32 GMT
Organization: D'Arcy Cain Consulting
Keywords: assembly mov asm 

$dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS) writes:
>is there ANY difference between  MOV ES,AX
>
>and                              PUSH AX
>                                 POP ES

The biggest difference is that the second form takes two separate
memory accesses while the first takes none.  The "MOV ES, AX" takes
2 clocks on a 386.  The "PUSH AX" takes 2 clocks and "POP ES" takes
7.  (The numbers are 18, 2 and 21 under protected mode.)  This doesn't
include wait states for the PUSH/POP if your system adds them.  Wait
states don't apply to the MOV method (I am ignoring the access for
the instructions themselves.)

Sorry, I don't have the figures for 8088/86/286.

>Does this affect ANY flags?

The effect on the flags is the same in both cases - none.

-- 
D'Arcy J.M. Cain (darcy@druid.com)  |
D'Arcy Cain Consulting              |   There's no government
Toronto, Ontario, Canada            |   like no government!
+1 416 424 2871          DoD#0082   |
Newsgroups: comp.os.msdos.programmer
From: mlevis@ringer.cs.utsa.edu (Mike Levis) (OS/2)
Subject: Re: SIMPLE assembly question...
Keywords: assembly mov asm 
Organization: University of Texas at San Antonio
Date: Thu, 17 Dec 1992 08:50:56 GMT

In article <gn#@byu.edu> $dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS) writes:
>
>Here is a simple one:
>
>is there ANY difference between  MOV ES,AX
>
>and                              PUSH AX
>                                 POP ES
> 
>(besides the fact that the stack pointers get moved a little)???

MOV ES,AX is faster than PUSH AX + POP ES because it does not access
memory.

>Does this affect ANY flags?

No, the general register versions of these instructions do not.

>Thanks!
>
>Douglas R. Nebeker         Internet: $dougn@sasb.byu.edu

-- 
==== Mike Levis   mlevis@ringer.cs.utsa.edu ====
::   ftp ftp-os2.nmsu.edu (128.123.35.151)    ::  .--.
::   for OS/2 software & information.  Get    :: (OS/2)
:::: the OS/2 FAQL   /pub/os2/all/info/faq :::::  ~--~
Newsgroups: comp.os.msdos.programmer
From: fred@maccs.mcmaster.ca (Fred Whiteside)
Subject: Re: Cry for Help: TCP/IP programming API wanted 
Reply-To: fred@bws.com (Fred Whiteside) 
Organization: Beame & Whiteside Software Ltd. 
Date: Sat, 19 Dec 1992 13:51:02 GMT

In <3BZVVB2w165w@angus.mi.org>, thx1138@angus.mi.org writes:
[text elided]
>We cannot use Beame & Whitesides TCP/IP and socket library either.  We
>must operate in a nonblocking mode and their socket library blocks
>on a soclose() call if there is a physical break in communications. 

	actually, that was a bug in our TCP driver.  This has been
corrected in the most recent release (3.00a).  Please contact tech@bws.com
for details on getting a repaired version of that driver.

Fred
Fred Whiteside   Beame & Whiteside Software Ltd., Caledonia, Ontario
fred@bws.com   fred@maccs.DCSS.McMaster.CA   ...!uunet!utai!utgpu!maccs!fred
Newsgroups: comp.os.msdos.programmer