HDTenEightyP/NetNews huggingface dataset:
From: jos@and.nl (Jos Horsmeier)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Can't link in math libs in djgpp - extra info
Date: 21 Aug 92 12:07:23 GMT
Organization: AND Software BV Rotterdam

In article <glen.91.714362482@wench.ece.jcu.edu.au> glen@wench.ece.jcu.edu.au (Glen Harris) writes:
|>  I've installed all the djgpp distribution files in my djgpp directory, but 
|>when I try to use a maths function the error is as follows:
|>test.o: Undefined symbol _tan referenced from text segment
|>  I have all the set vars in my autoexec bat and a simple "Hello World" 
|>program works, so <stdio.h> is OK.  By the way I _am_ using <math.h>. 8-}
|>  Any ideas?
|
|  Sorry, I should have said that I am also using -lm as a compiler argument.

The order of the command line parameters is important (well, for _my_
compiler it is ...)

If you compile like this:

cc -lm myfile.c

it won't work, you have to change it into this:

cc myfile.c -lm

Due to the behavior of the linker (`ld' on Un*x) it would skip the
entire library (if mentioned first) if there are no functions 
read yet that depend on a function in that particular library.

I hope this helps a bit,

kind regards,

Jos aka jos@and.nl
From: demented+@pitt.edu (Scott E Berry)
Newsgroups: comp.os.msdos.programmer
Subject: Detecting a disk in floppy drive
Date: 12 Aug 92 20:42:21 GMT
Organization: University of Pittsburgh


How can I detect if a drive contains a disk without getting the 
Abort, Retry, Ignore message.  I work in a computer lab at Pitt
and would I like to encourage students to use flopies rather than
leaving copies of their files all over the hard drive.  I plan 
on writing a utility that will check for a disk in the floppy drive
and run Turbo C or Turbo Pascal etc. with the appropriate configuration.

-- 
-------------------------------------------------------------------------------
                                 Scott E. Berry
                               demented+@pitt.edu
From: infidel+@pitt.edu (Todd J Derr)
Newsgroups: comp.os.msdos.programmer
Subject: Re: A batch programming contest for you
Date: 19 Aug 92 16:11:13 GMT
Organization: University of Pittsburgh

In article <1992Aug18.213600.27969@cs.ubc.ca> yogi@cs.ubc.ca (Yossi Gil) writes:
>
>Don't know about useful, but interesting... Well, how about the self
>printing batch program that I posted to alt.hackers some time ago:
>
>SELFPRNT.BAT:
>	Bad command or file name
>
>And yet another teaser: The above batch file doesn't self print
>on 4DOS! 

well, it doesn't self-print with COMMAND.COM either...  when you "List"
it:

C:>type selfprnt.bat
Bad command or file name
Bad command or file name
...

and when you execute it:

C:>selfprnt

C:>Bad command or file name
Bad command or file name

C:>Bad command or file name
Bad commmand or file name

close...  but you are supposed to get *The Same* output if you "List" it
or Execute it- and you don't.


later,

todd.

-- 
todd j. derr - the c.o.m.a. moderator!  "i've got nothing to say but
infidel+@pitt.edu       (412) 363-9027   it's ok."
infidel@pittunix (BIT)  work: 648-1247 
if your mail bounces, send it to infidel@unix.cis.pitt.edu.  thanks!
From: aki@cruzio.santa-cruz.ca.us
Newsgroups: comp.os.msdos.programmer
Subject: Really weird things with 8250's, PC/XT's, IRQ's and I/O
Keywords: What's wrong now?
Date: Wed, 19 Aug 92 01:50:25 PDT
Reply-To: aki@cruzio.santa-cruz.ca.us


I have been working on a PC diagnostics program for some time
now.  Today I became aware of a problem that had never surfaced
earlier.  It seems that serial port testing code that works
perfectly on every computer I've tried it on;  suddenly starts
malfunctioning on a PC/XT with an 8 MHz V20.

The code consists of a _huge_ amount of inp's and outp's with
IRQ's blazing at full speed (well... c. 900 times per sec anyway).

The funny thing is,  that after disabling interrupts for the
duration of all I/O functions,  I ended up with less problems.
Even more elusive is the exact nature of the "bug".  I run the
same function two times perfectly with _no_ problems;  on the
third try it bombs.

Is this an obvious "see figure 1",  or am I tracking something
that my time is going to be wasted on?  I know there won't be
too many PC/XT users with NEC V20's out there rushing to use
my program;  thus I could label this as a "feature".

Anyway,  I'd greatly appreciate any input on this phenomena.

Aki.

-- 
/  Phone: 408-662 9664   Fax: 662 9676  |  "Aki" pronounced: Ah-Key. I know  \ 
\  125 Searidge Ct #D, Aptos, CA 95003  |  what I'm doing most of the time.  /
From: eoq@vthnw.cvm.msu.edu (Edward Quillen)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Why can't I hook INT 21h???
Date: 17 Aug 92 19:19:32 GMT
Organization: Veterinary Teaching Hospital, Michigan State Univ.

In article <14339@mindlink.bc.ca> Charlie_Hutchins@mindlink.bc.ca (Charlie Hutchins) writes:
>From: Charlie_Hutchins@mindlink.bc.ca (Charlie Hutchins)
>Subject: Why can't I hook INT 21h???
>Date: 17 Aug 92 17:41:03 GMT
>Okay, maybe someone could help me here.  I am trying to write a TSR
>that hooks interrupt 21h but whenever I try and hook that vector I
>get an invalid command.com error and my system crashes.  I am using
>TC++ 3.0 and I have tryed both using their set vect routine as
>well as manually changing the interrupt vector table but in both
>cases the same thing happens...crash!  Even if I write an ISR for
>INT 21h that simply returns control to the original ISR the system
>crahes.  For example, even this crashes my system:
>
>#include <dos.h>
>#include <stdio.h>
>
>void interrupt new21handler(void);
>void interrupt (*old21handler)();
>
>void main(void)
>{
>        disable();
>        old21handler=getvect(0x21);
>        setvect(0x21, new21handler);
>        enable();
>        keep(0, 4000);
>}
>
>void interrupt new21handler(void)
>{
>        (old21handler)();
>}
>
>Anyone know what's wrong here??? As far as I can see this program should
>basically do nothing but take up memory but instead, it crahes the system when
>run.  Any info would be greatly appreciated.
>
>...Charlie Hutchins

Please post replies to this ? because I've always wanted to hook INT 21h
but have never been able to. Thanks!!!

+++++++++++++++++++++++++++++++++++++++++++++++++
+++ ED (Edward Quillen)   (517) 336-1293      +++
+++ Vet Teaching Hosp.    System Admin.       +++
+++ Email: quillen@cps.msu.edu                +++
+++++++++++++++++++++++++++++++++++++++++++++++++
From: z_harbergt@ccsvax.sfasu.edu
Newsgroups: comp.os.msdos.programmer
Subject: Re: [QBasic to C Compiler]
Date: 22 Aug 92 05:30:52 GMT
Organization: Stephen F. Austin State University

In article <86575@netnews.upenn.edu>, zorrilla@cattell.psych.upenn.edu (Eric Zorrilla) writes:
> I'm looking for a Quick Basic to C converter (preferably to Microsoft
> though any standard is acceptable).  Does such a wonder exist?  If so,
> please refer me to an appropriate ftp site or send it to me by e-mail
> uuencoded.

  This should be FAQ material since it comes up ever so often.  There has
  been reports of a PD converter out in FTPland but it is condemned in
  the same breathe it is mentioned.  Alas, the only available BASIC to C
  converter is a commerical product offered by:

     GotoLess Conversions
     214.625.2323   FAX 214.370.2612   BBS 214.625.6905

  There products are not CHEAP!.  Their "Economy Model" sells for $419
  at The Programmer's Connection.

  Allow me to invite all interested BASIC programmers to visit
  alt.lang.basic.  United we comp. , divided we alt.

  Greg Harber                        InterNet: z_harbergt@ccsvax.sfasu.edu
  Stephen F. Austin State University
From: biswick@ms.uky.edu (Chad Hall)
Newsgroups: comp.os.msdos.programmer
Subject: Re: where can i find dgjpp?
Date: 12 Aug 92 21:34:21 GMT
Distribution: usa
Organization: University Of Kentucky, Dept. of Math Sciences

steve@rapids.austin.ibm.com writes:

>the subject says it all.  
>i'm looking for the DOS version of GNU C++.

  We've got a copy of it at f.ms.uky.edu. /pub/dos/Gcc is where you'll find
it.

Biswick

>thanks,
>Steve Unruh
Newsgroups: comp.os.msdos.programmer
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Why can't I hook INT 21h???
Organization: Queen's University
Date: Sat, 22 Aug 1992 04:47:22 GMT

In article <BtCwo7.C1o.2@cs.cmu.edu> ralf+@cs.cmu.edu (Ralf Brown) writes:
>
>Hmm, I sense a challenge.  OK, how about a TSR that only takes 64 bytes when
>resident?  Or a swapping spawn() that takes less than 300 bytes while the
>child program executes?

What should the TSR do?  I bet I could come close in Turbo Pascal.  (I'd say 
200 bytes is close, if you were wondering.  I didn't even think it was safe 
to clobber all but 64 bytes of your PSP.  Tell me that I can safely 
overwrite all but 32 bytes, and I'll go for 100.)  I know I couldn't do the 
swapping spawn; that's much beyond routine even in pure assembly.

Duncan Murdoch
From: kennedym@topaz.ucq.edu.au (Matt Kennedy)
Newsgroups: comp.os.msdos.programmer
Subject: Zinc Examples ????
Date: 13 Aug 92 15:21:50 AET
Organization: University of Central Queensland, Australia


Is it possible to FTP examples, utilities for the ZINC interface library?
I known they have there BBS, but phone cost from Oz is a bit expensive.

I'd really like to get hold of a windows.rc -> zinc code translator.(if
it exists).

thanks matt
-- 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|  _--_|\  kennedym@topaz.ucq.edu.au  |  Matthew Kennedy                  |
| /     *\ Ph: (+)61 79 309859        |  Programmer, Maths & Computing    |
| \_.--._/ Fax: (+)61 79 309729       |  University of Central Queensland |
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Newsgroups: comp.os.msdos.programmer
From: nxd3@po.CWRU.Edu (Nathan Dornbrook)
Subject: Re: How to make a CD play?
Reply-To: nxd3@po.CWRU.Edu (Nathan Dornbrook)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Tue, 18 Aug 92 18:58:01 GMT


In a previous article, kemp@convex.com (Phil Kemp) says:

>How does one cause an audio cd to play in a cd-rom.
>I have a couple of binaries which do this but I would like to 'design'
>my own user interface.
>
>Can this be done with interrupts, do I have to go out on the scsi bus
>and give the drive commands or can the mscdex util be accessed to
>perform this function. I would like to be able to choose tracks, skip
>forward and back, etc...
>
>Thanks for any help.
>
>--
>Phil Kemp, Systems Engineer         Voice:(403)-233-2815
>CONVEX Computer Canada Ltd.           Fax:(403)-261-2029
>Calgary, Alta.                  Internet:kemp@convex.com
>
>

-- 
"The steed of this valley is pain || And if "the lover escapes from the claws
 and if there is no pain, this    || of the eagle of love, he will enter the
 journey will never end."         || Valley of Knowledge and come out of doubt
The Valley of Love, Baha 'u' llah || into certitude."  The Valley of Knowledge
Newsgroups: comp.os.msdos.programmer
From: adk@Warren.MENTORG.COM (Ajay Kamdar)
Subject: dBASE III Plus question
Organization: Mentor Graphics, Silicon Design Division
Date: Wed, 19 Aug 1992 19:22:20 GMT

My apologies if this question is inappropriate for this newsgroup. The
FAQ did not seem to suggest a better newsgroup for this question.

In a dBASE III Plus program, I am using INKEY() to read the ASCII code of
the last key pressed. This seems to mostly work, except for a few keys.
INKEY() reads all the cursor control keys but the <- key; for <- it simply
returns a 0. There are other keys which INKEY() does not report either, but I
am not much worried about those. It would suffice for my purpose if I can
some how make INKEY() to report the <- key. Please note that I have already
verified that the <- key is working properly on my keyboard.

Thanks.

- Ajay

p.s. What I am trying to really do is implement "Quicken" style menus inside
	 dBASE. @..GET...READ obviously does not suffice for this purpose. Using
	 INKEY(), and implementing simple editing within a field, was the only
	 way I could think of to do this. I am a complete novice on PCs and
	 dBASE (less than a week), and would much appreciate if some one has
	 a better suggestion. If it matters, I am an experienced C/C++ programmer.

-- 
I speak for none but myself.

Ajay Kamdar                               Email : ajay_kamdar@mentorg.com
Mentor Graphics, IC Group (Warren, NJ)    Phone : (908) 580-0102
Newsgroups: comp.os.msdos.programmer
From: Ross Ridge <ross@zooid.guild.org>
Subject: Re: BC 3.0 and 386's
Organization: ZOOiD BBS
Date: Wed, 12 Aug 1992 09:06:51 GMT

dstamp@watserv1.uwaterloo.ca (Dave Stampe-Psy+Eng) writes:
>*Sigh*  Obviously you don't understand 386 protected mode programming.
>The selector is *not* a segment.  To get a null selector in real mode
>(which the IDE runs in) you must:

Yah, I know, but I tought the IDE ran in protected mode.  I haven't seen
Borland 3.x, but I thought they got rid of the real mode IDE and just went
with the protected mode one.  Could it be something else like your XMS
driver?

>And I doubt anyone would load 0 into _segment_ registers in protected mode
>except maliciously.

I seriously doubt it was done maliciously, more likely just negligently.

								Ross Ridge

-- 
Ross Ridge - The Great HTMU					     l/	 //
								    [OO][oo]
ross@zooid.guild.org						    /()\/()/
uunet.ca!zooid!ross						     db	 //
From: libh@Jane.UH.EDU
Newsgroups: comp.os.msdos.programmer
Subject: Re: Sorting/Printing
Date: 21 Aug 92 00:35:52 GMT
Article-I.D.: menudo.1992Aug21.003552.8775
Reply-To: libh@Jane.UH.EDU
Distribution: usa
Organization: University of Houston

In article <drice.714289674@ponder>, drice@ponder.csci.unt.edu (Keith Rice) writes:
>In <1992Aug20.022202.2349@menudo.uh.edu> libh@Jane.UH.EDU writes:
>
>>  Also, can someone tell me how to send escape codes to the printer.  I haven't
>>had a reason until now but he wants the sorted file printed out in condensed
>>print.  How do I send the 'chr(27) + ??' (the basic version) to the printer.  I
>>tried sending the character 27 + value but it just gave me the ascii equivalent
>>letter rather than changing the printer setup.  Thanks alot in advance for any
>>help on either question....
>
>Sounds to me like you are sending the '+' character right after the ESC.
>The following line of BASIC code will send a control code to activate
>italic mode on an Epson FX-series printer:
>
>	LPRINT CHR$(27) + "4";
>	(or)
>	LPRINT CHR$(27) + CHR$(52);
>
>Remember to end the string sent to the printer with ';' or you will
>get an unwanted line feed.
>
  Thanks but I already know how to do it in basic, I just can't get it to work
in 'C'.
>--
>D. Keith Rice -- University of North Texas -- drice@ponder.csci.unt.edu
>-----------------------------------------------------------------------
>Beta Test: To voluntarily entrust one's data, livelihood and sanity to
>           hardware or software intended to destroy all three.  In
>           earlier days, virgins were selected to beta test volcanoes.
Newsgroups: comp.os.msdos.programmer
From: mholtz@sactoh0.sac.ca.us (Mark A. Holtz)
Subject: BEGINNER: Help needed urgently for TurboVision
Organization: Sacramento Public Access Unix
Date: Mon, 17 Aug 92 19:26:04 GMT

One of these days, I gotta tell my father to ease up, there's only
24 hours in a day, and I do want to learn more, just lemmie
learn......

I'm using Borland C++ 3.0 w/Applications Frameworks (yes, that big
package....I managed to snag an unopened, legitimate copy for
$180 from a guy who won it, but didn't want it).

The TurboVision manual is leaving me confused. I need to get input
in several places, of which:

* Menu option selection ( Valid characters: 0123456789, two place
inputs).

* Dimension input (form is: ##.###, characters valid is .123456789)

Can someone help me!!!!!! Please!!!!
-- 
President: ___ George Bush            <:> UUCP: PacBell.COM! -> mholtz!sactoh0
           ___ Bill Clinton/Al Gore   <:>     ucbvax!csusac! /
                                      <:>
           _X_ None of the Above      <:> Internet: mholtz@sactoh0.sac.ca.us
From: gondhale@utdallas.edu (Parag Gondhalekar)
Newsgroups: comp.os.msdos.programmer
Subject: Need help writing a simple TSR
Date: 14 Aug 92 15:49:32 GMT
Distribution: usa
Organization: Univ. of Texas at Dallas


I need some help/ pointers on how to write a simple TSR that will print fixed
portion of screen, every time a hot-key is pressed. I am using one commercial
package that will sort/search for keywords on disk and list the results (all
ASCII ) in fixed window on screen. I want to print this window as summary of
search for viewing it later. I know this could be done with a TSR ( about 50
lines of C code ??? ). I stopped writing programs for MSDOS about 4-5 years  
ago and hate to read those books again :-). Any help/ suggestions will be
highly appreciated. Please e-mail to me since this could very well be a FAQ.

parag



-- 
Parag Gondhalekar,Northern Telecom Inc, Independent Contractor, Private Networks
Work: (214)-NTI-5836, 2221 Lakeside, MS C0608, Richardson, TX 75083 
Internet: [gondhale@utdallas.edu] OR [dajbd01@nt.com]
Newsgroups: comp.os.msdos.programmer
From: nigel@cotswold.demon.co.uk (Nigel Roles)
Subject: Re: What is the BEST make utility for DOS development?
Distribution: world
Organization: Interconnect
Date: Fri, 14 Aug 1992 10:06:57 +0000


In article <1992Aug13.162727.21019@midway.uchicago.edu> pynq@midway.uchicago.edu writes:

> I am looking around for a good MAKE for DOS development (primarily C,
> but I also use MAKE for various other file management tasks).
> 

Polytron PolyMake is pretty good for the DOS environment. I can't say I like
the extensions which have been made to it (they're pretty untidy), but it is
amazing what can be done with it. It solves a lot of problems, and I'm doing
some fairly nasty directory searching and filename manipulation.

Of course, you should be using MK not MAKE; it's a lot cleaner.

Anyone care to direct me to a DOS version?
From: claude@infopls.chi.il.us (Claudius Turner)
Newsgroups: comp.os.msdos.programmer
Subject: Source Code Spell Checking
Date: Tue, 11 Aug 92 11:18:59 CDT
Organization: INFOPLUS support, Wheeling, IL

I am looking for a program that will run a spell check for all "static" 
strings in my source code.  (I.E. all displayed text)  I would hope that
it is intellegent enough to know about \"'s and ""'s and not end the 
spell check on a bad note.

If you have any information please let me know.
					claude


--
claude@infopls.chi.il.us (Claudius Turner)
Infoplus BBS, +1 708 537 0247, v32bis. Home of Infoplus.
From: Charlie_Hutchins@mindlink.bc.ca (Charlie Hutchins)
Newsgroups: comp.os.msdos.programmer
Subject: Why can't I hook INT 21h???
Date: 17 Aug 92 17:41:03 GMT
Organization: MIND LINK! - British Columbia, Canada

Okay, maybe someone could help me here.  I am trying to write a TSR
that hooks interrupt 21h but whenever I try and hook that vector I
get an invalid command.com error and my system crashes.  I am using
TC++ 3.0 and I have tryed both using their set vect routine as
well as manually changing the interrupt vector table but in both
cases the same thing happens...crash!  Even if I write an ISR for
INT 21h that simply returns control to the original ISR the system
crahes.  For example, even this crashes my system:

#include <dos.h>
#include <stdio.h>

void interrupt new21handler(void);
void interrupt (*old21handler)();

void main(void)
{
        disable();
        old21handler=getvect(0x21);
        setvect(0x21, new21handler);
        enable();
        keep(0, 4000);
}

void interrupt new21handler(void)
{
        (old21handler)();
}

Anyone know what's wrong here??? As far as I can see this program should
basically do nothing but take up memory but instead, it crahes the system when
run.  Any info would be greatly appreciated.

...Charlie Hutchins
Newsgroups: comp.os.msdos.programmer
From: libh@Jane.UH.EDU
Subject: Re: Sorting/Printing
Reply-To: libh@Jane.UH.EDU
Organization: University of Houston
Date: Thu, 20 Aug 1992 03:29:51 GMT

In article <1992Aug20.022202.2349@menudo.uh.edu>, libh@Jane.UH.EDU writes:
>  I am working on a project for a friend that requires me to sort a large file
>of records (2000+ entries generally) that will change from month to month as he
>gets updates so I can never be certain of the number of records.  I would
>appreciate any suggestions on sorting the file.  Right now I am debating on how
>to treat it as a large array on disk and sort it as if it were in memory, but I
>also realize that it would be VERY slow.  Any suggestions would be greatly
>appreciated.
>  Also, can someone tell me how to send escape codes to the printer.  I haven't
>had a reason until now but he wants the sorted file printed out in condensed
>print.  How do I send the 'chr(27) + ??' (the basic version) to the printer.  I
>tried sending the character 27 + value but it just gave me the ascii equivalent
>letter rather than changing the printer setup.  Thanks alot in advance for any
>help on either question....
>
  Sorry, I forgot to mention that I am writing the program in 'C'.

********************************************************************************
*                       | What do I see?                                       *
*                       | I see time as it affects all things . . .            *
*   John White          | Human flesh withers and dies before my eyes. .       *
*                       | Flowers bloom only to fade . . .                     *
*   Libh@Jetson.uh.edu  | Trees drop green leaves, never to regain them        *
*                       | In my sight. . .it is always winter. . .always night *
*                       |                                     -- Raistlin --   *
********************************************************************************

Newsgroups: comp.os.msdos.programmer
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: 4DOS diversion (Was Re: A batch programming contest for you)
Organization: University of Vaasa, Finland
Date: Sat, 22 Aug 1992 18:42:17 GMT

>In article <1992Aug19.132543.7617@swlvx2.msd.ray.com>, rgc@swlrau.msd.ray.com (RICK CARLE) writes:
>> On the other hand, the solution to perhaps half the msdos problems seems
>> to be replacement of command.com by 4dos.  The solution to half the
>> remaining half is replacement of msdos by drdos.  After that you need

The unfortunate side of all this are the inevitable compatibility
problems.  Without going much into the details I just run into one
in a TP program.  Part of the error codes are dependent (returned
from) the command interpreter.  (The particular case was different
IOResult values retuned when running with MsDos and with DRDOS). 
Not very net from a programmer's point of view.  I have no
experience with 4DOS, but I would be very taken aback if there were
no similar problems at all. 

I am not coasting for any particular solution for the others.  Just
pointing out that there are compatibility problems of with the
alternative interpreters.  Therefore I will continue writing my own
programs for MsDos (with command.com).  Not because it would be
particularly good (it is not), but because it is the most prevalent
by an "astronomical" margin. 

..................................................................
Prof. Timo Salmi
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