HDTenEightyP/NetNews huggingface dataset:
From: fox@rei2.uucp (Fuzzy Fox)
Subject: Re: My trusted utilities stopped working!?! Help!
Date: Fri, 31 Jul 1992 19:52:02 GMT
Organization: REI

jp07@gte.com (James Paschetto) writes:

>I just re-configured my 386 from DOS 3.1 with a drive partitioned C: (5 megs)
>and D: (150 megs) to DOS 4.01 with a single 155 meg partition.  This seemed
>to go without a hitch, but now some of my old standby utilities can't find
>existing data files.

You mentioned DOS 4.01....are you loading SHARE.EXE, which is required
to properly access large-media drives?

-- 
#ifdef TRUE         | Fuzzy Fox                  fuzzy@netcom.com
#define  TRUE   0   | a.k.a. David DeSimone      an207@cleveland.freenet.edu
#define  FALSE  1   |          "This article was probably generated
#endif              |                  by a buggy news reader."
Newsgroups: comp.os.msdos.programmer
From: hjelm+@cs.cmu.edu (Mark Hjelm)
Subject: Truncating a File
Date: Tue, 28 Jul 92 19:44:04 GMT
Organization: School of Computer Science, Carnegie Mellon

My apologies if this is an faq, but is there a direct way to truncate
a file under DOS?  Copy/delete/rename seems a bit inefficient to me.

Thanks,
Mark Hjelm
hjelm@cs.cmu.edu
From: scjones@thor.sdrc.com (Larry Jones)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Polygon Question...
Date: 25 Jul 92 22:37:19 GMT

In article <1992Jul21.221038.7051@javelin.sim.es.com>, gclapp@javelin.sim.es.com (Glenn Clapp) writes:
> Traverse the polygon, calculating 3 cross products (v1->v2 X v2->v3,
> v2->v3 X v3->v1), and (v3->v1 X v1->v2), and if the cross products are
> positive, the polygon is counterclockwise, otherwise they will be negetive.
> Also, if you have a sign flip between the different cross products, then
> the polygon is not convex.

One is sufficient - a triangle is always convex.
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
Domain: lawrence.jones@sdrc.com               IBMMAIL: USSDR7DR at IBMMAIL
I thought my life would seem more interesting with a musical
score and a laugh track. -- Calvin
From: hughes@ccwf.cc.utexas.edu (paul)
Newsgroups: comp.os.msdos.programmer
Subject: Re: screen saver routines
Date: 29 Jul 92 05:27:51 GMT
Organization: The University of Texas at Austin, Austin TX

In article <1992Jul25.182513.2838@bronze.ucs.indiana.edu> yawei@bronze.ucs.indiana.edu (Ya-Gui Wei ~{QG9p~}) writes:
>>>   I'm planning on incorporating a screen saver into my program.
>>>From what I gather, I'll need to hook onto 2 interrupts, 0x1C and
>>>0x09.  My hook to interrupt 0x1C will increment a counter every
>>>time it is called and if the counter is greater than a certain
>>>amount of time, blank the screen.  My hook to interrupt 0x09 will
>>>unblank the screen and clear the counter if the screen is already
>>>blanked, otherwise it will just clear the counter.  Can someone
>>>tell me if this will work or have any suggestions/improvements?
>
>  This is neccessary only if you are writing a TSR (memory resident
>program) or want the screen saver to act as a TSR. If you are not
>writing a TSR it is not neccessary (and not nice) to hook the 
>interrupts. 
This is not exactly true, either.  I have written a game that I felt inclined
to add a screen saver to (just for fun), and I did so exactly as the original
poster describes.  One main plus with that method (hooking interrupts) is that
the Pause key will not prevent the program from calling the Checking routine
that will determine if the program should blank the screen.  Among other things
that can go wrong with this method, the program should be careful not to be
doing any disk access or be in the middle of a particularly slow portion of
code where the users isn't needed (or capable) of typing... maybe sorting or
some other unwieldy task.  Since the application I wrote my saver into should
never need to worry about that, it was a simple matter of stealing the int hook
and patching it all together.

Jason
Newsgroups: comp.os.msdos.programmer
From: ankleand@mtl.mit.edu (Andrew Karanicolas)
Subject: Re: Software to do Calculus with?
Organization: MIT Microsystems Technology Laboratories
Distribution: na
Date: Thu, 23 Jul 1992 05:47:48 GMT

In article <54819@mentor.cc.purdue.edu> falatic@mentor.cc.purdue.edu (MacGyver) writes:
>
>	Hi again! I am looking for software to do essentially what the Hewlett-
>Packard 48's do as far as symbolic calculus. I need something that is relatively
>inexpensive, (If I had $300 or whatever, I'd but the silly calculator!), will
>work without a math coprocessor (I am not looking for speed, but I want the



You should look into 'Maple'.  I'm fairly certain that there is a PC
version of 'Maple'.  We've got it on the CRAY-XMP here :)

-- 
Andrew Karanicolas
MIT Microsystems Technology Laboratory
ankleand@mtl.mit.edu
From: falatic@mentor.cc.purdue.edu (MacGyver)
Newsgroups: comp.os.msdos.programmer
Subject: Designing internal cards 4 the PC bus
Date: 22 Jul 92 06:15:51 GMT
Organization: Purdue University Computing Center


	(Note: I am not sure if this is the right forum for this question,
so if it isn't, please direct me to the RIGHT one!)

	I am currently designing severl projects for the PC that use
I/O ports and memory mapped devices (maybe only Ports). What I NEED is
a buffered I/O card, with access to a 16 byte set of ports, with fully
decoded R/W lines. I will build it myself if I have to, but I wonder if I can
avoid re-inventing the wheel as it were. Any suggestions?
(I DO NOT want to use anything besides a bus card, cuz I need the experience.)
	I am familiar with only one book on the subject, "Interfacing to the
IBM PC" by Sams Books.I need something along those lines, if not a fully
functional device.
	-Marty
		falatic@mentor.cc.purdue.edu  (Use E-Mail if possible)
Newsgroups: comp.os.msdos.programmer
From: macg9505@uxa.cso.uiuc.edu (Michael Alan Corn)
Subject: A graphic window in text mode?
Organization: University of Illinois at Urbana
Date: Mon, 27 Jul 1992 00:58:13 GMT

IBM's newest wordprocessor offers a split screen mode which
provides _both_ WYSIWYG and text mode at the same time.  My
question is how is this done?  I'd like to bring up a graphic
window (for instance) while remaining in text mode but I didn't
think this was possible.  Any suggestions, code etc.. would
be appreciated. Thanks Post or email macg9505@uxa.cso.uiuc.edu

Newsgroups: comp.os.msdos.programmer,news.answers
From: brown@NCoast.ORG (Stan Brown)
Subject: comp.os.msdos.programmer FAQ diff 1 of 4
Expires: Mon, 17 Aug 1992 03:44:58 GMT
Organization: Oak Road Systems, Cleveland Ohio USA
Date: Thu, 23 Jul 1992 03:44:58 GMT
Followup-To: comp.os.msdos.programmer
Supersedes: <1992Jun26.023220.2729@NCoast.ORG>

Archive-name: msdos-programmer-faq/diff1
Last-modified: 21 July 1992


As the FAQ list is quite long, I'm posting diffs for those of you who
already have copies of last month's edition.  If you want the complete
list, don't worry: I'm posting it at about the same time but as a
separate thread: look for "comp.os.msdos.programmer FAQ part" in the
Subject line.

As usual, I've omitted trivial diffs, those involving only formatting
and punctuation, and those that show renumbered Qs with no text change.


- 12>Last-modified: 25 June 1992
+ 12>Last-modified: 19 July 1992

- 63>    202. How do I fix "stack plus data exceed 64K"?
+ 63>    202. How do I fix "automatic data segment exceeds 64K" or "stack
+ 64>         plus data exceed 64K"?

+150>Legalistic stuff
+152>This article is not in the public domain, but it may be redistributed so
+153>long as this notice, and the information on obtaining the latest copy of
+154>this list, are retained.  The code fragments may be used freely; credit
+155>would be appreciated but is not required.
+157>            Copyright (C) 1992  Stan Brown, Oak Road Systems
-148>Disclaimers:  I have tested all the code included below, but your
-149>machine may not work the same as mine, and my testing may not be
-150>perfect.  THERE IS NO WARRANTY ON THE CODE.  All code fragments are in
-151>public domain and you may use them freely, though a credit would be
-152>nice!  Also:  the mention of particular books or programs must not be
-153>construed to reflect unfavorably on any that are not mentioned.
-156>Acknowledgements
+159>THERE IS NO WARRANTY ON THE CODE.  I have tested all the code included
+160>below, but your machine may not work the same as mine, and my testing
+161>may not be perfect.
+163>The mention of particular books or programs must not be construed to
+164>reflect unfavorably on any that are not mentioned.

new  Acknowledgements: B.Haible, Karl Riedling

-- 
Stan Brown, Oak Road Systems                      brown@Ncoast.ORG
From: Steve.Aasen@f32.n282.z1.tdkt.kksys.com (Steve Aasen)
Sender: FredGate@tdkt.kksys.com
Newsgroups: comp.os.msdos.programmer
Subject: Need Help With DOS 5.0 Problem
Date: Sat, 25 Jul 1992 06:24:00 -0600

I am having an odd problem since installing DOS 5.0. The situation is this:
I have the need to use single sheets of paper frequently with my Epson 
RX80-F/T+ printer to print out resumes and the like. I have the paper out 
error disabled via the dip switch in the printer so I can get all of the 
document on the page. This works successfully with DOS 3.2 and 3.3, but not 
with DOS 5.0. With DOS 5.0, upon getting the paper out light on the printer, 
the system stops and I get an error like Write error on device LPT1 (or 
PRN). This does not happen with previous versions of DOS. This problem 
occurs even if I use the COPY or PRINT commands to send a file to the 
printer. Has anyone seen this problem with MSDOS 5.0 or know how it can be 
easily fixed (I don't really want to go the "put a piece of tape over the 
paper out switch on the printer" way because this should work as I have it 
set up now. Any help on this would be most appreciated. By the way, I am 
running on a Zenith Z-157 XT compatible system, just for information 
in case you need it. Thanks.

                                Steve  
 
 * Origin: University of MN Libraries BBS - Minneapolis (1:282/32)
From: teechong@iti.gov.sg (Lee Tee Chong)
Newsgroups: comp.os.msdos.programmer
Subject: Porting of UNIX code to Windows poser
Summary: malloc and GlobalAlloc execution caused es register to change to 0000
Keywords: memory allocation
Date: 31 Jul 92 02:40:20 GMT
Organization: Information Technology Institute, National Computer Board, S'pore

I'm trying to port some UNIX codes that are written for TIFF i/o (including compression and decompression routines) over to the PC environment to run under Windows using Borland C version 3.0. 

I try not to change anything except throwing #ifdef statements to handle environment-specific features. All functions are changed to ANSI C functions, like fopen, fread, fwrite, etc. 

Where the memory allocation function is concern, I #undef malloc if WINDOWS is defined and #define it to my own function where I use GlobalAlloc and GlobalLock while returning a LPSTR. I also maintain the handles to the global memory (HANDLE hGMem) that is returned from GlobalAlloc in a simple list which associates the hGMem with the pointer returned from GlobalLock. 

When I use Borland's TDW to trace the code and examine the registers, I noticed that the es register changed some value like "es: 2D2F" to "es: 0000" when the GlobalAlloc statement is executed. This did not crash me out immediately but caused some code to fail later (Exception 13 code 0) whenever the es register is used.

Does anyone have had a similar experience before? What could be the problem? Is there a better/easier way to port memory allocation functions to Windows? I understand that malloc translate to LocalAlloc with LMEM_FIXED under Windows, which is why I'm using the above method- I need to allocate fairly big chunks. I need help urgently. Thanks. 

-------------                                 -----------------------------
LEE TEE CHONG                                 Internet: teechong@iti.gov.sg
Computer and Communications Lab               Bitnet  : TEECHONG@ITIVAX
Information Technology Institute              Tel (O) :(65)-7720955
National Computer Board                       -----------------------------
71, Science Park Drive, Singapore (0511)      -----------------------------
-- 
-------------                                 -----------------------------
LEE TEE CHONG                                 Internet: teechong@iti.gov.sg
Computer and Communications Lab               Bitnet  : TEECHONG@ITIVAX
Information Technology Institute              Tel (O) :(65)-7720955
From: mvdl@et.tudelft.nl
Newsgroups: comp.os.msdos.programmer
Subject: FOSSIL DETECTION, how ?
Date: 27 Jul 92 18:00:42 +0200
Organization: TU-Delft, dpt of Electrical Engineering


How (with what interrupt or so) can I detect whetther or not ANY fossil-driver
is installed ?

I've read about BNU detection in Brown & Kyle's 'PC INTERRUPTS', but will
this interrupt also work for X00 ?

Step 2 is how to detect whether or not the loaded fossil-driver is X00 (it
must be installed because of the extended interrupts I use from X00), but
therefore I could use the 'return information about FOSSIL' interrupt that 
is available in any Fossil.

Step 1 is the most important at this moment..

Solutions, anyone ?

TIA,
Michel.
From: egg@dstos3.dsto.gov.au
Newsgroups: comp.os.msdos.programmer
Subject: DMA transfers RAM to RAM
Date: 28 Jul 92 15:53:32 GMT
Organization: Defence Science and Technology Organisation


 I am lead to beleive it is possible to do DMA transfers RAM to RAM.
 If possible, could somebody please post a summary of how to do it on an AT.
 Information on how long such transfers take would also be appreciated.

 My motivation is to write a video update routine to move data to and from
 video ram independent of the cpu.

 Thanks in advance.

-
===============================================================================
Themie Gouthas
Aeronautical Research Laboratory
Defence Science and Technology Organisation
Salisbury, South Australia

InterNet: egg@dstos3.dsto.gov.au
Newsgroups: comp.os.msdos.programmer
From: robert@solan.unit.no (Robert Schmidt)
Subject: BC++ syntax highlighting????
Organization: Norwegian Institute of Technology
Date: Fri, 24 Jul 92 17:03:13 GMT


Several people tell me that BC++ 3.0 highlights comments, reserved words
etc by using different colors.

I can see no such thing in my version, and I have drawn the conclusion
that those people are wrong.

Someone please confirm wether I'm color blind or right.

(I know some Microsoft articles sport such highlighting...)


-- 
Cheers from Robert Schmidt, aka Ztiff Zox, aka Buuud (IRC).  E-mail to 
robert@solan.unit.no, snail-mail to Stud.techn. Robert Schmidt, Stud.post 170,
Norwegian Institute of Technology, 7034 Trondheim, NORWAY          

Warlords: Now do you think my .sig is boring enough?
Xref: sparky comp.os.msdos.programmer:8063 comp.sources.wanted:3732
From: copeland@cs.arizona.edu (Jack Copeland)
Newsgroups: comp.os.msdos.programmer,comp.sources.wanted
Subject: wanted: LBM (Deluxe Paint II) format info/source
Keywords: LBM graphics source
Date: 25 Jul 92 01:45:21 GMT
Followup-To: poster


I'm looking for format information (and possible C source) for Electronic
Arts - Deluxe Paint II graphic files. In other words *.lbm files. 

I know someone out there must have this stuff. All answers will be of
great help.

copeland 
Newsgroups: comp.os.msdos.programmer
From: Ross Ridge <ross@zooid.guild.org>
Subject: Re: Reboot in C?
Organization: ZOOiD BBS
Date: Fri, 24 Jul 1992 00:17:40 GMT

evansj@crs.cl.msu.edu (Jeffrey Evans) writes:
>I am attempting to reboot MS-DOS machines in MSC 5.1, but am having 
>absolutely no luck with int 19.  Is there a better way to acomplish 
>this?  All replies most welcome!

void
warm_reboot(void) {
	((void (far *)(void))0xFFFF0000L)();
}

void
cold_reboot(void) {
	*(unsigned short far *)0x00400072L = 0;
	((void (far *)(void))0xFFFF0000L)();
}

							Ross Ridge

-- 
Ross Ridge - The Great HTMU					     l/	 //
								    [OO][oo]
ross@zooid.guild.org						    /()\/()/
uunet.ca!zooid!ross						     db	 //
Newsgroups: comp.os.msdos.programmer
From: shankar@ec.ecn.purdue.edu (Shankar Ramakrishnan)
Subject: Poser on abs() function in asm. lang.
Organization: Purdue University Engineering Computer Network
Date: Sun, 26 Jul 1992 21:55:41 GMT


While I went through the object code generated by Turbo C for the 
integer abs() function, I saw something like this:
  or ax,ax
  js done
  neg ax
done:
This has 6 bytes of code. I wondered whether there could be a shorter
code, and yes, I came up with one that takes only 5 bytes. But instead
of posting it on the net, I am leaving it as a puzzle to be solved by
readers of this net.
The problem is as follows: given an integer in AX, find a routine that
has 5 bytes or less that returns the absolute value in AX. Assume 
nothing about the contents of other registers or flags.
Please DO NOT post your answers on the net. Instead, send your solution
by email to me(shankar@ecn.purdue.edu). The names of the first 10
people who give the correct solution will be posted by me on this net.
Good luck.
-Shankar
From: scott@mycro.UUCP (Scott C. Sadow)
Newsgroups: comp.os.msdos.programmer
Subject: Re: FILE LOCKING UNDER MS-DOS
Date: 28 Jul 92 13:52:04 GMT

In article <26JUL199202194285@mary.fordham.edu>, news@ctr.columbia.edu (The Daily Lose) writes:
>Hi,
>
>    I have to implement a module for file locking under msdos. Firstly
>the environment is dos 5.0 programming in "C" and compiling with 
>Borland "C". 
>
>    The objective is as follows-:
>
   (description deleted)

This should be able to be done by just loading SHARE on all machines
involved. (SHARE implements DOS's file/record locking)


   Scott C. Sadow
   scott@mycro.UUCP
   ...gatech!nanovx!mycro!scott
From: scott@mycro.UUCP (Scott C. Sadow)
Newsgroups: comp.os.msdos.programmer
Subject: Re: BIOS INTERRUPTS
Keywords: Serial Comms
Date: 25 Jul 92 19:33:32 GMT

In article <1992Jul22.114740.2882@hippo.ru.ac.za>, sppp@hippo.ru.ac.za (Prof P Piacenza) writes:
>
>I have come across what appears to be a confusing discrepancy.
>In Terry Dettmann's book "Dos Programmer's Reference", Que Corp.,
>1988; (an excellent book in my opinion),
>
>on page 425 it states that:
>      BIOS Interrupt 0Bh is used by COM1 & COM3 on the PC & XT,
>      & is used by                  COM2 & COM4 on the AT.
>
>
>      Similarly on page 426 it states that:
>      BIOS Interrupt 0Ch is used by COM2 & COM4 on the PC & XT,
>      & is used by                  COM1 & COM3 on the AT.
>
>I have a terminal emulation program that is hard-coded for COM1,
>but uses Interrupt 0Ch.  This program works on both PC and AT
>class machines!
>
>Also I believe that most PC/XT bioses do not support COMs 3 & 4.
>
>Since I am trying to write a terminal emulation program, I need to have
>this discrepancy sorted out.  Can anybody enlighten me?
>
>-- 
>   L.Piacenza - Chemistry Department - University of Transkei
>   Internet: sppp@hippo.ru.ac.za  Tel. 27-471-3022384
>   Internet: chpp@unitrix.utr.ac.za


COM1 is usually 0x3F8, and IRQ 4, which is interrupt 12, or 0x0C
COM2            0x2F8,     IRQ 3                     11,    0x0B
COM3            0x3E8      IRQ 4                     12,    0x0C
COM4            0x2E8      IRQ 3                     11,    0x0B


I have heard/read somewhere that for PS/2, COM3-COM8 all share a common
interrupt line (either IRQ 3 or IRQ 4, I don't recall which) COM1 & COM2,
though, are pretty standard.


   Scott C. Sadow
   scott@mycro.UUCP
   ...gatech!nanovx!mycro!scott
From: tdg1465@hertz.njit.edu (tod gordon cccc)
Newsgroups: comp.os.msdos.programmer
Subject: Any Network related DOS 5.0 patches or upgrades?
Date: 30 Jul 92 15:48:48 GMT
Distribution: comp.os.msdos.programmer
Organization: New Jersey Institute of Technology, Newark, N.J.

Has Microsoft issued any patches or upgrades to DOS 5.0 to solve
Novell Netware problems?  A friend of mine heard of some problems
between the two.

-- 
----------
Tod Gordon (tdg1465@hertz.njit.edu)
"Rockin' good coffee, and hotter than Georgia asphalt, too!" 
- Sailor Ripley at the RR Diner -
Newsgroups: comp.os.msdos.programmer
From: traub@rtf.bt.co.uk (Michael Traub)
Subject: Re: Borland 3.1 C++ Upgrade??
Organization: BT Customer Systems, Brighton, UK
Date: Thu, 23 Jul 1992 16:46:52 GMT

In article <1992Jul21.144210.28500@dg-rtp.dg.com> brownp@viper.rtp.dg.com (Peter Brown) writes:
>I'm still a bit miffed about not getting the API though,
>especially when they include a nice picture of all the manuals showing the 3.1
>number on them and a the windows api.

This  was  just  a  plain  rip-off on Borland's part. I rang them and asked
where  were  my  API  manuals.  They  said  they  weren't  included  in the
upgrade.  I  asked  if the windows API manuals were included as part of the
full  package  for  BC++  3.1.  They said that they were. I then asked what
was  the  *full*  upgrade  price  that  included the manuals. They said you
have  the  full upgrade. I said where are my manuals then? They said for an
extra  19  quid  they  could  send me the manuals. I said ok, so the *full*
upgrade  cost  is  actually 39.95+19.95? They said: no, the full upgrade is
only  39.95.  I gave up by then. I must say they train their sales staff in
doublespeak particularly well.

I'm thinking of changing to Microsoft after that episode.


-- 
Michael Traub
Newsgroups: comp.os.msdos.programmer
From: potts@itl.itd.umich.edu (Paul Potts)
Subject: Re: BC++ syntax highlighting????
Organization: Instructional Technology Laboratory, University of Michigan
Date: Mon, 27 Jul 1992 17:51:16 GMT

In article <1992Jul24.204651.447@athena.mit.edu> yev_g@athena.mit.edu (Yevgeny Gurevich) writes:
>
>>(I know some Microsoft articles sport such highlighting...)
>
>As far as I know, versions 6.0 and 7.0 of Microsoft C do NOT have this
>highlighting.
>

The version of the Microsoft debugger that comes with the Win32 development
kit has such a feature. There isn't an editor for this version that does
this yet, though, at least not from Microsoft.
And, of course, this isn't a final released product...

(as far as I know)...


-- 
..though I respect that a lot, I'd be fired if that were my job, after 
killing Jason off and countless screaming argonauts... (They Might Be Giants)
Paul R. Potts, Software Designer --- potts@itl.itd.umich.edu <--- me!
From: fritz@hpfcbig.SDE.HP.COM (Gary Fritz (tmp))
Newsgroups: comp.os.msdos.programmer
Subject: Re: Re: C/C++ <--> Turbo C/C++ whats the difference?
Date: 20 Jul 92 21:25:04 GMT
Organization: HP SESD, Fort Collins, CO

In comp.os.msdos.programmer, timlee@public.btr.com writes:
>Some MSDOS C compilers are limited to 640K, use messy segmented
>pointers ("void far *foo" and things like that), and have only
>16 bit ints, which are bound to annoy many UNIX C programmers.
>Others, using MSDOS extenders, avoid the 640K limit and segmented
>pointers, and have 32 bit ints.

>16 bit compilers:
>Borland C/C++

I'm running from a very limited knowledge base, but...

From my brief perusal of Borland C++ 3.0 manuals, it appeared to me that
while they DO have such cruft as near/far/huge/etc, they weren't limited
to 16-bit ints.  Or was that "long"s that were 32 bits?  Hmmm.

Are you saying that the "32-bit" compilers you list do NOT have to deal
with the near/far/huge stuff?  Do they do this by always generating the
worst-case "far" code?  From my (admittedly limited) understanding of
the DOS world, the braindead segmented Intel architecture forces you to
either pay attention to segmentation, or accept fairly serious efficiency
losses.  Or am I misunderstanding you?

Maybe I need a clearer understanding of what an "MSDOS extender" is...

Gary