HDTenEightyP/NetNews huggingface dataset:
From: klosp@rimail.interlan.com (Patrick Klos)
Subject: Re: Serial Driver Problem
Organization: Klos Technologies, Inc. (603) 424-0138
Date: Tue, 10 Nov 1992 12:19:34 GMT

In article <1992Nov10.015504.21169@speedy.aero.org> don@surtsey.aero.org (Don C. Hancock) writes:
>From: don@surtsey.aero.org (Don C. Hancock)
>Subject: Serial Driver Problem
>Date: 10 Nov 92 01:55:04 GMT
>Serial Driver Problem
>
>I hope this is the right place for this.  If not, please
>let me know.
>
>I'm trying to program the serial port to control some equipment.  I
>can't seem to get it (i.e. the port) to generate interrupts (such as
>the data received, or transmitter empty)
>
>What am I doing wrong?
>
>Here's what I've done so far (briefly, sort of).
>
>1.      Replaced vector 0x0c with my interrupt service routine. I'm
>pretty sure this right, because a  geninterrupt(0x0c) gets to my
>routine.
>
>2.      Set up the serial port to interrupt on everything but the modem
>status change by writing 0x07 to the interrupt enable register.
>
>3.      Set 8259 interrupt controller to enable interrupts from IRQ3
>and IRQ4 with outp(0x21, inp(0x21) & 0xe7);
>
>4.      End my interrupt service routine with outp(0x20, 0x20).
>
>When I do a write followed by a read, I get the data I sent.  I've done
>this using the loopback feature (set bit 4 of the modem control
>register) and by wiring pins 2 & 3 together, so the connections are
>right.  I've also done the above for the second serial port, I just
>can't get the hardware to generate interrupts.
>
>Any ideas.  I'll post (or email) code if it'll help me get an answer.
>Please email or post any replies (but email is preferred).
>
>Thanks for any help you can give me.  I'm really troubled by this.  I'm
>sure I'm doing something dumb here.
>
>Don
You forgot one critical element... and now I can't recall it completely 
myself.  Anyway, the Modem Control Register (I think that's what it's 
called) allows you to control 4 signals: Data Terminal Ready (DTR), Request 
To Send (RTS), OUT1 and OUT2.  Now it's coming back to me... the modem 
control register is I/O base+4 (03fcH in your case).  In order for the 
controller to generate an interrupt, you MUST set OUT2 (which is bit 3) to 
one.  I'm sure that will solve your problem!

Good luck!
========================================================================
        Patrick Klos                 Internet: klosp@rimail.interlan.com
        Klos Technologies, Inc.      Compuserve: 71521,145
        (603) 424-0138
========================All opinions are my own!========================
From: emmerik@utrcu1.civ.utwente.nl (Emmerik P.J.L. van)
Newsgroups: comp.os.msdos.programmer
Subject: Anyone with experience porting from UNIX/X11 to MSDOS??
Date: 8 Nov 92 18:38:55 GMT
Organization: University of Twente

Anyone out there with experience in porting UNIX/X11 applications to
MSDOS?

We are investigating the possibility of porting a rather big UNIX/X11
application (about 25 Mb source) written in FORTRAN and C to MSDOS.
The reason we want to port to MSDOS is that a lot of people have a PC
that is adequate for our application, but the do not want to leave
MSDOS becouse of existing applications, or they do not want to learn
a new OS like for example UNIX.

What dit you do about the following problems:
- Limited file name lengths
  The development will continue on UNIX, so for sources i would not mind
  to convert file names automatically.
- Memory - UNIX has an "unlimited" virtual memory space for every proces
  Are there compilers or other methods to have an "unlimited" address
  space under MSDOS (or maybe Windows NT) ?
- Can linkers under MSDOS handle long routine names
  Our routines are unique within 9 characters.
- Can you combine C and FORTRAN code the same way you do under UNIX
  i.e. trailing underscore and extra parameters for stringlenths for
  FORTRAN routines
  Note: we could prevent the problem of combinig C and FORTRAN by converting
  our FORTRAN code to C using F2C.
- What dit you do about graphics, we currently use X11

Other things I would like to know are:
- What compilers and utilities dit you use
- Where can they be obtained (reps in The Netherlands or elsewhere in Europe)
_ What was the approximate cost

Are there any problems i dit not mention that i should think of?

Please E-mail to emmerik@utwente.nl

-- 
Pieter van Emmerik                    | Phone:  +31-74-464231
HDS info management                   | FAX:    +31-74-464110
P.O.box 23                            | E-mail: emmerik@utwente.nl
7550 AA  Hengelo, The Netherlands     |         hp4nl!utrcu1!emmerik
From: jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO)
Newsgroups: comp.os.msdos.programmer
Subject: Accessing high mem via Borland C?
Date: 12 Nov 92 14:31:58 GMT
Organization: Lehigh University


Hi,

Does anyone know of any software libraries available which facilitate
easy accessing (through Borland C) of the expanded and extended memory
of the PC? Any public domain software to do this?

I know of only 1 ("Personal Computing Tools" of Los Gatos, CA, cost:
$300). Has anybody tried this package?

                                        Thanks in advance
                                        John M. Troiano
                                        Lehigh University
From: ssnyder@prism.poly.edu (Sharon Snyder)
Newsgroups: comp.os.msdos.programmer
Subject: Re: COMPILING SPEED
Date: 12 Nov 92 20:15:34 GMT
Distribution: na
Organization: Polytechnic University, New York

Maybe the person who started comparing TP to C forgot to mention
a couple of important facts:
1. Pascal is a 1-pass compiler......of course it's faster than MOST/ANY(?)
   2-pass compiler (like C)
2. Pascal, because it is 1-pass has limitations that C does not have.  Any
   extensions to Pascal to improve the language have had to make "weird"
   syntax demands.  

I personally am more comfortable with Pascal than C but they both
have plusses and minuses.  I can see comparisons in regard to
commands or memory management, but that is about it.

-Sharon Snyder

ssnyder@prism.poly.edu

   1
From: fredex@fcshome.UUCP (fred smith)
Newsgroups: comp.os.msdos.programmer
Subject: Re: fread-inf >= 64K in Borland C++
Date: 10 Nov 92 19:33:57 GMT
Organization: What?!? Absolutely none!
X-Newsreader: Tin 1.1 PL5

Bill Denton (AD) (bill@sees.bangor.ac.uk) wrote:
: When I try to fread 64K or more in Borland C the PC locks up. This occurs with
: all memory models and with version 2.0 and 3.0. Is this serious bug fixed in
: version 3.1 ? How do I fix it, without the obvious, but unsatisifactory, solution of reading the data in chunks smaller the 64K ?
: 
This is NOT A BUG (unless you're generating 32-bit 386 or 486 code, that is!).

On MS-DOS systems the processor is run in real mode in which mode all 
int's are 16-bit quantities. The biggest number you can store in an int
is (2**32)-1, or 65535, or 64k-1. Therefore the biggest chunk of data that
can be moved in an i/o operation is 64k, since all the low-level functions
use an int to tell 'em how many bytes to move.

It's a FEATURE (of sorts).

: Bill Denton
: bill@sees.bangor.ac.uk
: School of Electronic Engineering and Computer Science
: University of Wales, Bangor
: UK
: 
: 
Newsgroups: comp.os.msdos.programmer
From: bruceb@ctpm.uq.oz.au (Bruce Blackshaw)
Subject: Disabling return in a dialog box
Summary: How to disable return key in a dialog box
Organization: Centre for Language Teaching and Research, Uni of Queensland, AUSTRALIA.
Date: 12 Nov 92 05:12:50 GMT

I'm using a multiline edit box in a dialog box, and want to
stop the return key returning the dialog box - when the user
presses the return key it should take them to the next line
in the edit box.  Any ideas?  Please email replies.  If there is
sufficient interest I'll post the (hopefully) solution.


--
****************************************************
Bruce Blackshaw bruceb@ctpm.uq.oz.au   
"... I'd rather be hang gliding ..."
****************************************************
Xref: sparky comp.os.msdos.programmer:10482 misc.int-property:1420
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.os.msdos.programmer,misc.int-property
Subject: Re: How to "save" behind window in graphics mode?
Date: 10 Nov 1992 22:03:53 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com
Keywords: Window Dos Graphics text save behind

In article <a_rubin.721333938@dn66> a_rubin@dsg4.dse.beckman.com (Arthur Rubin) writes:
>In <1992Nov6.183318.5344@netcom.com> danwood@netcom.com (Daniel J Wood) writes:
>>I have a little "windowing" package I've written; when you open up a window
>>on top of another, it saves the contents of the window(s) behind it by
>>reading the ASCII/color bytes from the display buffer, and socks it away
>>for restoration after the window is closed. THE PROBLEM is that this technique
>>only would work in "text" mode, not in one of the various graphics modes
>>where characters are painted to the screen.
>
>Doesn't this violate the "Backing Store" patent?  (Proof once again that the
>patent was obvious.)

Only if he uses the same algorithm and data structures as that patent
specifies.  Here are the relevant claims from the patent (4,555,775):

    1. A computer terminal display system comprising
    a display surface,
    means for simultaneously displaying a plurality of overlapping
	    rectangular graphic layers on said surface, wherein
	    each of said graphic layers comprises an autonomous
	    level of graphical information,
    means for associating each of said graphic layers with an independent
	    computer program,
    means for storing a complete bitmap for each of said graphic layers, and
    means responsive to the associated one of said independent computer
	    programs for continuously updating each of said bitmaps.

In other words, a windowed display system.  Pike would have a real hard
time defending his claim to have invented windowed displays within a year
before 1982 when he filed for his patent; the Xerox Alto was well known in
the industry in the late 70's.

    2. The display system according to claim 1 wherein said bitmaps
    for all partially obscured ones of said graphic layers comprise
    a plurality of partial bitmaps of obscured layers linked together.

Notice the specific mention of "linked together".  The descriptive part of
the patent (which I've read, but don't have online) goes into more details
about the data structures and algorithms that make use of them.

Daniel Wood's description sounds more like X's "save under" feature for
temporary windows (similar also to the MIT Lisp Machine's pop-up temporary
window facility, which was described in documentation around 1980, a couple
of years before Pike filed for his patent).  Instead of keeping a linked
list of obscured regions it just saves away everything under the new
window.

-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: princemr@cnsvax.uwec.edu
Newsgroups: comp.os.msdos.programmer
Subject: BC/C++ -> ANSI C
Date: 11 Nov 92 17:42:05 GMT
Organization: University of Wisconsin Eau Claire

Ok, here's my problem...

I recently purchased Borland C/C++ and that is all fun and great. My problem
lies in the fact the many of my classes and on our campuses UNIX machine and
that runs ANSI C. 

I was wondering if there was any way to get BC/C++ to "think" (bad term, I
know) in ANSI C.

If not, can anyone suggest a good ANSI C compiler for msdos?


The reason I ask these questions is I would like to practice some-what, over
winter and summer breaks, on ANSI C before I hit my classes in the spring and
next fall.

Post either to here or e-mail me. My address is princemr@cnsvax.uwec.edu.

			Thanks in advance!

				Mike Prince
Xref: sparky comp.os.msdos.programmer:10556 rec.games.programmer:4647 comp.sys.ibm.pc.soundcard:3704
Newsgroups: comp.os.msdos.programmer,rec.games.programmer,comp.sys.ibm.pc.soundcard
From: ematias@csri.toronto.edu (Ummm... me!)
Subject: SB Programming Info [Summary]
Organization: CSRI, University of Toronto
Date: 12 Nov 92 19:43:23 GMT


Hello all,

   About four or five days ago I posted a message asking about libraries
and/or ASM/C source code which would allow me to include SB support in my
programs.  As is always the case, I got more e-mail saying, "Send me the
info too!" than actual suggestions...  :-)

   However, I did get a number of helpful tips, and I'll summarize the
packages as follows:

   Package                FTP Site              Directory
  ---------              ----------            -----------
- SBDOS20.ZOO       as.arizona.edu               pub/SBDOS20
- BLAST13.ZIP       garbo.uwasa.fi               pc/sb
- SBF.ZIP           wench.ece.jcu.edu.au         pub/sbf


   I don't have a ZOO decompressor, so I haven't had the opportunity to look
at SBDOS20 yet.
   BLAST13.ZIP worked just fine for me, and it's probably the one I'll use.
   SBF.ZIP didn't work for me, but I'm positive that it's the fault of
either my card or my system.  It obviously *does* work for the author and
others, and seems to be a very nice, complete package.
   Lastly, one person even suggested that I buy the Creative Labs SDK, since
it would be *impossible* for me to add SB support wthout it.  I thank him
for the advice, but unfortunately I can't afford shelling out CDN$100+ for
the simple project I'm working on.

   Some other packages/routines I've seen on local BBS's are CTV-MOD (has
modifications/enhancements to the original CTV-VOICE.DRV functions), SBDAC
(a simple subset of SBF.ZIP), and SOUNDHAX (which needs the library
SBCLIB).  You might want to check Archie or your local boards for these
programs as well.

   Thanks muchly to all who replied, and I hope this helps others who are in
the same position as I.


Cheers,

     - Mark Rosteck -
(ematias@csri.toronto.edu)
(g1marker@cdf.toronto.edu)
From: fh.pad@sni.de (Frank Hoffmann)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Obtaining the volume label
Date: 5 Nov 92 12:01:52 GMT
Organization: Siemens Nixdorf Informationssysteme AG, Paderborn, Germany
NNTP-Posting-Host: fam168.ap.pdb.sni.de

Actually this is a crosspost from alt.msdos.programmer, so if you already
know it -- forgive me :-)
From: wells@cdsmn.mn.org (Rich Wells)
Subject: Re: Windows Multitasking
Organization: Dicomed, Inc
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 5 Nov 1992 18:07:09 GMT

fred j mccall 575-3539 (mccall@mksol.dseg.ti.com) wrote:
: In <mortenk.65.720660018@dhhalden.no> mortenk@dhhalden.no (MORTEN KNUDSEN) writes:
: >In article <etxansk.720194534@garbod20> etxansk@garbo.ericsson.se writes:
: >>From: etxansk@garbo.ericsson.se
: >>
: >> One simple question: By reading a chapter in Charles Petzold's
: >>"Programming Windows" I got the impression that Windows programs
: >>have to divide time-consuming tasks into a number of sub-tasks
: >>in order to let other Windows programs get some execution time.
: >>
: >> Is this true? Does the sharing of system time depend on all
: >>processes running? In that case, isn't it annoying to write
: >>compilers etc for Windows? 
: 
: >I think discribing windows as multitasking is an overstatement. It's more 
: >like reentrant. If you have tried OS/2, you'll know what I mean.
: 
: I really wish people wouldn't write things when they don't know what
: they're talking about.
: 
: Please define the following words:  'multitasking', 'reentrant'.
: Describe the different types of multitasking and their advantages and
: disadvantages. 
: 
: [Once you have answered the preceding questions, please explain why
: the statement above concerning Windows, OS/2, multitasking, and
: reentrant is silly.]

Gee, Fred, you missed an opportunity to enlighten us with your
infinite wisdom, but wasted it on a senseless flame.  C'mon, the
least you can do when you flame is to answer the original question.

So, to answer the original question, Windows multitasking depends
on each program calling a certain set of routines -- GetMessage,
PostMessage, and a few others -- often enough to let Windows
switch to another task needing some time.  So if you have some
heavy-duty processing to do, try and split it into chunks and
do a little at a time, calling one of these functions periodically
to let Windows do its thing.  In other words, the onus is on the
programmer, not the compiler, to allow Windows to multitask.
Most good books on Windows programming will supply code to
demonstrate this.

But, just to confuse matters, if you have Windows running in
enhanced mode, Windows will use pre-emptive multitasking to
switch between DOS sessions and the one Windows session.  My
knowledge of this is slim (in fact, I don't think "session"
is the right word, but I trust you know what I mean by it), so
I'll defer any further explanation to one who really knows,
especially since we have Fred the watchdog double-checking
our posts (1/2 :-).
-- 

Richard Wells  wells@cdsmn.mn.org  or  ...!tcnet!cdsmn!wells
Newsgroups: comp.os.msdos.programmer
From: u920666@daimi.aau.dk (Lasse Reichstein Nielsen)
Subject: Re: Batch problem
Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
Date: Fri, 13 Nov 92 09:27:29 GMT

au240@cleveland.Freenet.Edu (Ari Pitkanen) writes:



>How do I pass '%%f' to 'DoIt'?  This approach don't work.

>---
>:Main
>cd scene
>for %%f in (*.*) do goto DoIt   REM copy filename to %%f
>goto End

>:DoIt
>cd..
>trace scene\%%f                 REM %%f don't contain the filename :(
>copy scene\%%f traced
>del scene\%%f
>cd..
>goto Main

>:End
>cd..

>---

>Ari

>-- 
>Ari Pitkanen : au240@cleveland.freenet.edu

Your problem is that COMMAND.COM  completes it's FOR command before continuing
 to process the rets of the .BAT file. That means, in a directory with fx. 20
 files 20 GOTO DoIt's are executed within the FOR statement, and on exit from
 the FOR, the 'program-counter' has been changed to DoIt
That is: ONLY THE *LAST* GOTO IS ACTUALLY PERFORMED!
And the %%f variable exists only within the FOR-statement, hence your problem!

A solution is to break your file into two:


:Main
cd scene
for %%f in (*.*) do call doit.bat %%f
cd ..
 
and :

<doit.bat>

cd..
trace scene\%1  
copy scene\%1 traced
del scene\%1
cd scene

<end>

This should do the trick!

					Spot / u920666@daimi.aau.dk
From: danodom@matt.ksu.ksu.edu (Dan Odom)
Newsgroups: comp.os.msdos.programmer
Subject: Re: What is MicroSoft's usenet address?
Date: 8 Nov 1992 08:35:09 -0600
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

roger@hpnmdla.sr.hp.com (Roger Petersen) writes:


>I once sent e-mail to postmaster@microsoft.com, 
>asking if they had an on-line e-mail support address,
>or even customer feedback address.

>Postmaster@microsoft.com said that they didn't.

>Progressive?  Not.

I've found another corporation that behaves this way: Borland.
If you send mail to customer-support@borland.com, they send you
a message saying that they don't offer support on the Internet and
you'll have to ask them on Compu$erve.  What a rip!
-- 
Dan Odom
Kansas State University
danodom@matt.ksu.ksu.edu
Newsgroups: comp.os.msdos.apps
From: ianst@qdpii.comp.qdpi.oz.au (Ian Staples)
Subject: Re: util for pointing to bad RAM ?
Organization: Qld Dept Primary Industries
Date: Sun, 8 Nov 1992 05:54:54 GMT

In article <1992Nov5.152140.26920@wixer.cactus.org> raistlin@wixer.cactus.org (Eli Boaz) writes:
>In article <loren.197@wmkt.wharton.upenn.edu> loren@wmkt.wharton.upenn.edu (Loren Miller) writes:
>>In article <1992Oct20.205450.3211@mailer.cc.fsu.edu> jblaine@fsu1.cc.fsu.edu (Jeff Blaine) writes:
>>>He is looking for any utility that can possibly point to a bad RAM chip.  
[Stuff gone]
>>
>>I'm looking for something similar. I have a few machines that I suspect may 
[Stuff gone]
>
>You might want to look at CheckIt.  It's commercial software, but
[Stuff gone]
>has a lot of other diagnostic programs as well.  It also has a
>utility that helps to locate the bad memory chips.
>
It certainly draws pretty pictures of "bad chips", etc., but I was never
convinced they were really related to physical memory in a 386SX with
4 meg of DIPs plus 4 meg of SIMMs.  Most of the techie types I consulted
re a memory defect in my machine said that the only way to find a bad chip
would be to swap chips around and see what happened then!  But I suppose
CHECKIT, or a similar program, would at least indicate a pattern change
when you hit the baddy.  Incidentally, the POST did not indicate that I
had a problem much of the time - what on earth *does* it do?
Ian S.


-- 

Ian Staples                       | Internet : ianst@qdpii.comp.qdpi.oz.au
c/- P.O. Box 1054,                | Fax      : +61 70 92 3593
MAREEBA  Queensland  4880         | Voice    : +61 70 92 1555
From: judie@waikato.ac.nz
Newsgroups: comp.os.msdos.apps
Subject: Re: WP51, page #, TR corner Port, on a Land page?
Date: 6 Nov 92 09:32:45 +1300
Organization: University of Waikato, Hamilton, New Zealand

In article <hurd.720750573@sfu.ca>, hurd@fraser.sfu.ca (Peter L. Hurd) writes:
> Hi there,
>   can anyone tell me how to put a page number in the top right
> corner of a portrait page, when the bulk of the page is a landscape
> orientation table or figure,
>   Thanks in advance,
> -P.
> Pete Hurd, hurd@sfu.ca|
> 
If the table or figure is already in a table or figure box, you can use the edit
part of whichever box command to rotate the specific table  etc to landscape and
it should leave everything else in portrait (like your page numbers).

If whatever-you-want-landscape is not already in a Graphics box of some kind 
(Figure, table, text, user or equation) then use block ([Alt F4]) and Move 
([Ctrl F4]) and put it into the appropriate type of graphic box.

Option 9 from the box definition menu is Edit and one of its options is Rotate.

Let me know if it doesn't work with a few more specifics about what you are 
trying to do.
-- 
Judie Wert Scheurich
Uni of Waikato, N.Z (that little cluster of islands off Tasmania)
From: ferch@ucs.ubc.ca (Les Ferch)
Newsgroups: comp.os.msdos.apps
Subject: Re: Boot protection
Date: 9 Nov 92 16:40:35 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: swiss.ucs.ubc.ca

>> Hi, can someone tell me where to get some MSDOS programs that can prevent
>> someone from booting my PC? (like PASSWORD protection.) Thank you.

>If you're ready to pay for it, you can check out Disklock from Fifth
>Genereation Systems.  With it, you can make yourself primary user and
>have access to everything and you can make other people secondary users
>and restrict their access to the HD.  Diskette booting is not possible.

You can still boot a PC protected with DiskLock using a floppy, but you
will not have access to the hard drive.
 
 
 
 
 
 
 
 
  
Newsgroups: comp.os.msdos.apps
From: fisher@sc2a.unige.ch
Subject: Re: WP51, page #, TR corner Port, on a Land page?
Organization: University of Geneva, Switzerland
Date: Fri, 6 Nov 1992 10:09:41 GMT

In article <hurd.720750573@sfu.ca>, hurd@fraser.sfu.ca (Peter L. Hurd) writes:
>   can anyone tell me how to put a page number in the top right
> corner of a portrait page, when the bulk of the page is a landscape
> orientation table or figure,

Easy enough, if your printer supports a mixture of portrait and landscape.
If it doesn't, you could of course procude a PostScript file, and print
that with GhostScript :)

Either you use `portrait' as default, rotating the figure/text box/table box
by 90 degrees, or you use `landscape' as default, including a header or
footer with a small text box containing the page number (i.e. `p.^B'),
rotated 90 (or 270) degrees.

If everything fails, you can also print in two passes, the first in
landscape for your tables/figures, the second in portait for the page
numbering.  This might even be the easiest solution in some cases.

Hope this helps,

Markus Fischer    Dpt of Anthropology, Geneva CH    fisher@sc2a.unige.ch
Newsgroups: comp.os.msdos.apps