HDTenEightyP/NetNews huggingface dataset:
From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Subject: Mouse incompatibility
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
Date: Thu, 7 Jan 1993 15:16:42 GMT

I would like to have some pointer on how to deal with a program
using a mouse that work on a PC, partly on another and not on a third.

I use the Zortech 3.00r4 mouse package which is MS compatible.
I think I can presume it is doing a call to int 33h.

Usually, the program is working.  I use the mouse in EGA mode and
only the commands msm_init, msm_getstatus amd msm_term.

In the machines where the system is usually working, I have a
home made pull down menuing system and separate application area
push button/edit field functions.  The whole system is working
good on my PC.

But, on one colleague machine, the menus are working, some application
functions too, but not all.  I presume in that case the driver
is returning a bad status value.  That machine has a trackball
instead of a true mouse device.  Is this relevant?

On another machine, the cursor stays at the center, like when there
is no driver at all.  I checked and that machine has a MSCMOUSE driver
that I presume is from MS-C package.  Is that driver not MSMOUSE
compatible?

Shall I remove all the msm_status calls and replace them with my
own int 33h calls?

Any help will be appreciated.


-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Ge'ne'alogiste des familles : Beauregard/Jarret/Jarest/Vincent
J   __>  Un Que'bec renouvele' dans une Ame'rique renove'e
\_.-===  Ope'rateur de "Racines du Que'bec" (514) 922-9636 BBS/Genealogie
From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
Newsgroups: comp.os.msdos.programmer
Subject: Re: question on spawning DOS from C prog
Date: Thu, 07 Jan 93 12:16:11 CST
Organization: Villa CyberSpace, Minneapolis, MN

siebeck@infoac.rmi.de (Wolfgang Siebeck) writes:

> In your function declare something like:
> 
> 	static char prompt[]="PROMPT=<Type EXIT to return to program>$_$_$P";
> 
> and before the spawnl() do a
> 
> 	putenv(prompt);
> 
> to get exactly what you want.

This will, of course, require that you have spare room in your
environment block.  Applications are passed a _copy_ of the environment
by command.com, which has all spare space trimmed off.  Thus, the
putenv() call may very well fail.

4dos can pass extra environment space explicitly, or you can construct
an environment array for the child program and pass it with a spawnlpe()
or similar call.
--
Roy M. Silvernail --    [my machine ] "Sometimes, you're the windshield....
roy%cybrspc@cs.umn.edu  [my opinions]            sometimes, you're the bug!"
cybrspc!roy@cs.umn.edu  [my $0.0275 ]                      --Mark Knopfler
From: ghart@ems.cdc.com (Geoffrey Hart)
Newsgroups: comp.os.msdos.programmer
Subject: Looking for basic C dev package
Date: 12 Jan 93 20:09:52 GMT
Reply-To: ghart@ems.cdc.com
Organization: Empros Systems International, a division of CDC

Hi all,

My sister is just starting to learn C, and she has a Tandy 1000 with two
floppy drives running DOS.  No hard disk.  Is there a freely distributable
C compiler compiler out there that will work with this configuration?  All
she needs is something that will do "Hello world" kind of programs (no
special graphics), although ANSI C would be nice.

Thanks for any pointers.

-- 
    geoff hart ghart@ems news@ems library@ems   x4273   s/ems/ems.cdc.com/
Newsgroups: comp.os.msdos.programmer
From: craigs@cci632.cci.com (Craig Schneider)
Subject: How To Label A Floppy Disk From Turbo Pascal?
Keywords: Label, Volume, Pascal
Organization: Northern Telecom, Inc. - Network Application Systems
Date: Tue, 12 Jan 1993 18:04:30 GMT

The subject says it all, How can a label a floppy/hardisk from
Turbo Pascal.  I know how to read the label, but modifying it is
a whole other story.  Any help would be appreciated!!

                                Craig Schneider

O O
 ^
\_/ 
Xref: sparky comp.os.msdos.programmer:11878 comp.sys.ibm.pc.misc:16414 comp.os.os2.misc:41542
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc,comp.os.os2.misc
Subject: Re: 'Scrolling'??
Date: 7 Jan 93 19:21:04 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1993Jan7.072729.12792@usl.edu> das9674@ucs.usl.edu (Stephenson Daniel A) writes:
>I just *have* to ask this:  in a OS/2 window, one of the command-button
>options is 'scrolling'.  When you selecting the title bar says
>'Scrolling: OS/2 Window'.  Just *what* does this do?  I have no 
>idea what it does, it seems to do nothing!

This is for keyboard users.  If the window isn't full-size, this
option will let you manipulate the scroll bars without the mouse.

-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
Newsgroups: comp.os.msdos.programmer
From: jamesc@borland.com (James Chuang )
Subject: Re: How could I copy protect Borland C++ on a network ?
Originator: jamesc@genghis.borland.com
Organization: Borland International
Date: Tue, 5 Jan 1993 19:15:05 GMT

I thought the original post said they were on an NFS network?  Does this mean
the server is UNIX based?  And have you tried the execute only file
attribute?

jamesc

-- 
==============================================
#include <Disclaimer.h>
==============================================
// If someone asks if you are a god, you say YES!
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc,comp.os.os2.misc
From: ferdie@coyote.datalog.com (fred jarvis)
Subject: Re: DISABLING  CTRL-C  in BAT FILES...
Organization: Datalog Consulting, Tucson, AZ
Date: Wed, 6 Jan 93 08:56:34 GMT

> > >Does anyone know of ANY way that would disable Ctrl-C &/or Ctrl-Break in
> > >a BAT file. I have to shell to dos from a database app. (Paradox) to run
> > >a BAT file and if user hits Ctrl-C during BAT file processing, every thing
> > >gets ruined. I have to catch it somehow...
> > >
> > >Thanks very much.
> > 
PC Magazine has an old utility CTRLLOCK which temporarily disables the
control key.  It is in the book PC Magazine DOS Power Tools (FIRST
edition, not the newer one) and on ZiffNet.  I'm sure it or something
similar is readily available on many BBS's.  I don't know where it is
on USENET.
Xref: sparky comp.os.msdos.programmer:11988 comp.lang.c++:18951 comp.lang.c:19542
From: mkohtala@lesti.hut.fi (Marko Kohtala)
Subject: Re: Serial Communication Question
Reply-To: Marko.Kohtala@hut.fi
Organization: Helsinki University of Technology, Finland
Date:  8 Jan 93 18:30:45 GMT

In <1993Jan7.144009.10363@panther.mot.com> asu@server2.panther.mot.com (Russell Trotter) writes:

>Hello,
> 
>  A few days ago, my boss posted a question needing some info
>on setting up/initializing the com port and read/write howto's.
>After digging through the code we got from replies, we found that the best way 
>to do this was to use some code that would actually access
>the UART?

Yes. If you do not want to access the UART directly, you can get a
FOSSIL device driver that does it for you and use the FOSSIL. Most BBS
programs use this approach.

Two popular FOSSIL device drivers are X00 and BNU. They come with all
the necessary API documentation.

>My question is, what, precisely, are these
>status interrupts for, and are they absoultely necessary?

Receiver Line Status
	Source: Overrun, Parity or Framing error or Break
	Reset: Read the LS register

Modem Status
	Source: Clear to Send or Data Set Ready or Ring Indicator or Data
		Carrier Detect. 
	Reset: Read the MS register

They are not absolutely necessary. Modem Status can be used to
implement hardware flow control: change in Clear to Send causes an
interrupt and if it is set, the interrupt routine should start to
transmit if there is data in the transmit buffer.

Also, for these to work, you must make sure that the interrupt
conditions are reset. The thing to do to reset is shown above. If you
do not reset the interrupt, it will stay on and there will not be
another interrupt on AT bus. In MCA I think it will cause the
interrupt handler to be called constantly untill the interrupt is
reset thus hanging the machine.

Received Data interrupt can be reset by reading the Receive Buffer
register. Transmitter Holding Register Empty interrupt can be cleared
by reading IIR or writing to THR.

If you have any problems, I am willing to write you a tailored comm's
module for a reasonable compensation. I have written the one used in
Telemate communications program. 
-- 
---
Marko Kohtala - INTERNET:Marko.Kohtala@hut.fi, mkohtala@otax.tky.hut.fi
Student at (not representative of) the Helsinki University of Technology
Newsgroups: comp.os.msdos.programmer
From: ming@shiva.trl.OZ.AU (Ming H Chan)
Subject: Turbo profiler and macros
Summary: problem using tprof on programs with lots of macros
Keywords: borland turbo profiler macro inline assembly
Organization: Telecom Research Labs, Melbourne, Australia
Date: Sun, 10 Jan 1993 23:02:21 GMT

I use a lot of macros and inline assembly in my C programs.
When I use Turbo profiler (tprof), I get lots of segment:offset
type results instead of the more symbolic info (like line numbers
and routine names). Any suggestion on this (but not advice on how
not to use macros) would be greatly appreciated. Will I have the
same problem with Microsoft C?

Thanks.
___________________________________________________________________________
Ming Chan                                     Internet:    m.chan@trl.oz.au
Telecom Research Laboratories                    Voice:      +61 3 253 6774
P.O. Box 249, Clayton, Vic, 3168, Australia        Fax:      +61 3 253 6352
From: jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO)
Newsgroups: comp.os.msdos.programmer
Subject: question on spawning DOS from C prog
Date: 5 Jan 93 21:22:29 GMT
Organization: Lehigh University


    Hi, I have written an application (using Borland C) which spawns
DOS upon request by the user (using spawnl). Everything works great
but I would like to display a reminder to the user with each DOS prompt
so he does'nt forget he is in a spawned DOS process (similar to way
Word Perfect does this). For example, after spawning DOS the user would
see:

            <Type EXIT to return to program>      <--this would appear
                                                     each time <RET> hit
            C:\

    Is there, perhaps, a parameter to COMMAND.COM to do this?

                                                - John
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer,rec.games.programmer
From: mcastle@cs.umr.edu (Michael R Castle)
Subject: Re: Need help with Phar Lap DOS Extender and assembly
Date: Mon, 4 Jan 1993 18:58:41 GMT
Organization: University of Missouri - Rolla, Rolla, MO

In article <1993Jan4.153250.9049@mksol.dseg.ti.com> daniel@mksol.dseg.ti.com (daniel lemon) writes:
>In article <3JAN199313402308@zeus.tamu.edu> s0r1282@zeus.tamu.edu (RAVET, STEVEN) writes:
>>The real reason I am posting is to recommend a different compiler, GCC from
>>the Free Software Foundation.  It comes with a dos extender that supports
>>VCPI, ie QEMM, DesqView, etc.  It is bundled with a debugger, assembler,
>>profiler, etc.
>
>Correct me if I'm wrong, but isn't that debugger a little primitive?
>I tried out this package, and the debugger wasn't much better than the
>DOS DEBUG.EXE command.  It had no support for source-level debugging.
>(If it actually will do source-level debugging, please tell me; I need
>to know.  We'd be using it if it did.)

debug32 can do a little bit more now than it used to.  If the source in 
in the current directory, it will display it as you go along, and you 
can go things like

g file.c#50   

to run till you hit line 50 of file.c

Still not line by line debuging, 'step' still takes you through one machine
instruction at a time, but at least now you can see where you are at (listing
code is much the same, you see the assembler along with the c source).

If you have a unix machine nearby, someone from cygnus has managed to do
some changes to debug32 to allow use of gdb using it's serial line protocol
to control debug32 (so you are in essence using gdb).  More info can be
found from the djgpp mailling list.

Hey, if you don't like, source is there, feel free to change it!  If you 
really need it right away, you can probably pay someone to put it in for
you (most of the people of doing it in their spare time, remember, and 
dj is taking some time off of it due to an upcoming addition to his family).


Btw, I saw another post mentioning problems getting to barnacle.  The address
IS barnacle.erc.clarkson.edu, but there do appear to be some (unannounced)
problems.  They may just be doing some maintainence.  djgpp 1.09 can also
be found on simtel20 in pd1:<msdos.djgpp>, could possibly be on garbo (i'm 
sure 1.08 is, not sure if they've upgraded), and a T1 link can be found at
ftp.math.niu.edu (this last also has several ports to dos using djgpp, such
as many fsf packages (ls, sort, cat, tail, head, mv, rm, etc), zoo (much 
faster than standard dos version), and others).  Dir for niu are pretty
obvious.

regards,
mrc
(djgpp hacker)

-- 
Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  mcastle@cs.umr.edu     and be right all the time, or not work at all
S087891@UMRVMA.UMR.EDU   and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen
Newsgroups: comp.os.msdos.programmer
From: tchnd-au@garnet.berkeley.edu (Yuval Oren)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Soft Links under DOS (UNIX ln -s)
Date: 12 Jan 1993 01:52:51 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: garnet.berkeley.edu

In article <1993Jan11.170104.6198@rei.com> fox@rei.com (Fuzzy Fox) writes:
>tchnd-au@garnet.berkeley.edu (Yuval Oren) writes:
>
>
>One question:  How do you propose to be able to tell the difference
>between a symlink file and a real file that happens to contain a
>pathname?
>

The link files will have a special header -- one that no other file
would have, such as: @@@UVLINK FILE@@@

My symlink will support EXEC and also directory linking. One question,
though -- how do I allocate a 81 byte area in a .com assembly file
(I'm new at it). Can I just do:

DB	?	,81 

? or something like that?

Yuval

-- 
________________________________________________________________________
|Yuval Oren						               |
|yuval@ocf.berkeley.edu     				               |
| "One spoiled green bird is worth two cooks in the other grass broth."|
Newsgroups: comp.os.msdos.programmer
From: brown@NCoast.ORG (Stan Brown)
Subject: Re: question on spawning DOS from C prog
Organization: Oak Road Systems, Cleveland Ohio USA
Date: Thu, 7 Jan 1993 15:20:37 GMT

In article <tim.36.726368023@tim.src.utah.edu> tim@tim.src.utah.edu (Tim Ma) writes:
>>In your function declare something like:
>>	static char prompt[]="PROMPT=<Type EXIT to return to program>$_$_$P";
>>and before the spawnl() do a
>>	putenv(prompt);
[to display a custom prompt in a spawned DOS session]

>Is this possible?  It was my understanding that 'spawn' called a new command 
>shell so any changes in the environment would not be carried over.

spawn does indeed call a new command shell.  But the environment in that
shell is a copy of the environment block of the program that created the
shell.  So the suggeted solution is the right thing to do: it modifies
the prompt string in the program's copy of the environment, and then the
spawned shell inherits the modified environment.

When the user types EXIT to return from shell to program, and then later
the program itself ends, the environment is unchanged because the putenv
call modifies only the program's copy of the environment, not "the"
envronment belonging to the original DOS shell at boot-up.

The FAQ list sheds a little light on some related questions.
-- 
Stan Brown, Oak Road Systems                      brown@Ncoast.ORG
Cleveland, Ohio, USA
From: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 
Newsgroups: comp.os.msdos.programmer
Subject: What is the timer chip cl
Date: 6 Jan 93 15:35:00 GMT
Distribution: world
Organization: Advanced Computer Concepts BBS, New Rochelle, NY 914-654-1981
Reply-To: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 

VS> .In the process of writing a routine to get high-resolution times from the 
  > .timer chip, I wondered at the weird clock rate for the timer chip: 1.19318
  > .Mhz.  Is that right?  If the clock rate were 1.193046 Mhz, the low-speed
  > .counter at 040:06eH would tick once per hour.  At 1.193180 Mhz, it ticks a
  > .1/2 second early (65536*65536/1193180 ~= 3599.597, 65536*65536/1193046 ~=
  > .3600.001), or about 6 us early per interrupt (65536/1193046-65536/1193180)
  > .assuming overflow of the medium-speed counter at 040:06cH is intended to t
  > .the low-speed counter at 040:06eH once per hour.

Good thinking.  What you're missing is that the most common high
precision crystal is 3.579545 mHz.  That's the frequency used for the
color subcarrier oscillator in a color TV, and since they're made by the
gazillions, they're very cheap.

That's the story behind the story...

        D/
---
 . QMPro 1.0 41-3345 . Bring back A-N airways!!    Dick.Zeitlin%acc1bbs@ssr.com
                                      
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer,rec.games.programmer
From: pynq@quads.uchicago.edu (Jeremy Mathers)
Subject: Re: Need help with Phar Lap DOS Extender and assembly
Reply-To: pynq@midway.uchicago.edu
Organization: D. J. Dougherty & Associates
Date: Mon, 4 Jan 1993 19:11:17 GMT

In article <1993Jan4.153250.9049@mksol.dseg.ti.com> daniel@mksol.dseg.ti.com (daniel lemon) writes:
...

(ABout DJGPP)
>Correct me if I'm wrong, but isn't that debugger a little primitive?
>I tried out this package, and the debugger wasn't much better than the
>DOS DEBUG.EXE command.  It had no support for source-level debugging.
>(If it actually will do source-level debugging, please tell me; I need
>to know.  We'd be using it if it did.)

It does.  Just compile with -g.

But, yes, the debugger is not the strong point.  Of course, real
programmers don't need 'em.  My programs work right the first time.

(Can you say, "trolling" ... ?)

************************************************************************
I am master of my domain.

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
Newsgroups: comp.os.msdos.programmer
From: shi@ics.uci.edu (Edmond C. Shi)
Subject: tvision question
Organization: Univ. of Calif., Irvine, Info. & Computer Sci. Dept.
Date: Tue, 5 Jan 1993 02:36:15 GMT

...just started to work with turbovision about a month ago
   and ran into some questions i was hoping somebody could help
   out on.

     1)  when i run the tvision demo programs and access the
         help menu, i get an "assertion" error after closing
         the window.  it seems like the program is deleting
         an object when it shouldn't -- specifically, it seems
         to be occurring when deleting the help topic object?
         any body have an idea how i might resolve this problem
         since i am using some of it for my own code.
     2)  using the scrolling bar, is there a way i can modify it
         so that the window scrolls when the cursor is on the
         bottom line rather than the top line?

thanks,
     ed



Newsgroups: comp.os.msdos.programmer
From: fox@rei.com (Fuzzy Fox)
Subject: Re: Soft Links under DOS (UNIX ln -s)
Date: Mon, 11 Jan 1993 17:01:04 GMT
Organization: Recognition Equipment, Inc.

tchnd-au@garnet.berkeley.edu (Yuval Oren) writes:

>I would like to implement soft links for DOS. I planned to trap the
>file open, close, etc. interrupts, and re-direct them to the address
>stored in a "link file," which would have one line, the full path of
>the real file. But then I thought, how can I open this file to find
>out where to go? Any ideas for me?

Presumably your INT21 handler would remember the address that it used to
have stored, so that it could pass non-linked file calls on to DOS.
Just use the old INT21 handler to handle your link calls.

I would love to see a good symlink handler for DOS.  I saw one once that
seemed to work, but it did not support the DOS EXEC call, so I could not
use it to symlink program files to each other.  This would have been
perfect for the PBMPLUS tools.

One question:  How do you propose to be able to tell the difference
between a symlink file and a real file that happens to contain a
pathname?

-- 
#ifdef TRUE        | Fuzzy Fox (a.k.a. David DeSimone)       fuzzy@netcom.com
#define  TRUE   0  |
#define  FALSE  1  |  "911 Emergency Rescue Service - Can you hold, please?"
#endif             |
From: jjarrett@csugrad.cs.vt.edu (James Jarrett)
Newsgroups: comp.os.msdos.programmer
Subject: Problems with program starting from DOS vs. shell
Date: 8 Jan 93 13:21:18 GMT
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA

An application that I am working on in Borland C++ does not run from the
DOS prompt on some machines.  It locks up during its initialization stage.
If it is run from the DOS 5.0 Shell or from a Windows DOS shell, it works
fine.  The executable is about 130K compiled under the compact model.

Is this an easy problem to solve?  I really have no idea where to look.  The
machine that I am programming on never has this problem, although I cannot
run the same program from within a batch file on still other machines.

Any help would be greatly appreciated.

Jim Jarrett

PS  If you have a concrete solution or suggestion, please EMail me at
    jjarrett@csugrad.csugrad.cs.vt.edu
    as I may not have a chance to read this group again for some time.
    Thanks.
Newsgroups: comp.os.msdos.programmer
From: engp2029@nusunix1.nus.sg (ANG SOON HOCK ANDREW)
Subject: SVGA programming for S3
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 12 Jan 1993 00:53:36 GMT


Hello to everyone out there! This is my problem :-
I have a "Chroma VGA graphics accelerator card". It uses a 86C911 GUI
Accelerator chip. I believe it is S3 compatible. What I'd like to know
is that since I want to utilise graphics in 1024x768x256 colors, are
there any .BGI drivers available around (preferably shareware or
freeware) or are there any references around that I can use to activate
those features of the card.

Thanks in advance.