HDTenEightyP/NetNews huggingface dataset:
From: scavanag@neumann.une.edu.au (Steven Cavanagh)
Newsgroups: comp.os.msdos.programmer
Subject: floodfill problem.
Date: 21 Jul 92 05:38:47 GMT


I'm not sure if this belongs here or in rec.games.programmer (if I
post something like this in one, SOMEBODY tells me to take it to the
other), but:

	I'm writing a simple game using Borland C++ 3.0, and
without going into too much detail, I need a section of the viewing
screen that is already filled coloured black (ie, only part of the
filled section is to be coloured black, effectively erasing it).
I setcolor(EGA_BLACK); draw the boundaries of the area using lineto,
and then floodfill(x,y,EGA_BLACK) inside this region. When the 
program runs the lines are drawn okay, but the region is not filled
in. I have checked the use of floodfill() and the coordinates, but
cannot figure out why it isn't doing it.

Can anyone help?

	Cav.
Newsgroups: comp.os.msdos.programmer,news.answers
From: scott@mycro.UUCP (Scott C. Sadow)
Newsgroups: comp.os.msdos.programmer,connect.audit
Subject: Re: REQUEST FOR INFO: DISABLING ^C
Summary: How do you disable the ^C handling?
Date: 23 Jul 92 13:13:44 GMT

In article <1992Jul20.124824.2971@ibmpcug.co.uk>, fredc@ibmpcug.co.uk (Fred Curtis) writes:
>I want to disable the ^C interrupt.  I can trap it and ignore it
>by reseting the DOS interrupt vector, but it still prints "^C" on
>the screen.


The best way I have found of doing this is to create a small interrupt
handler that just sets a flag. Then set interrupt vector 1BH to this
routine. (1BH is the BIOS ctrl-break handler) I also set interrupt vector
23H to this same routine, or slightly different. (23H is the DOS
ctrl-c/ctrl-break handler)

Oh yes - make sure you save both vectors before changing them and restore
them before your programs ends.

(By the way, I have done this also for interrupt vector 5, which is print
screen. Then I can check the global variable and, if set, print the
graphics screen.)


   Scott C. Sadow
   scott@mycro.UUCP
   ...gatech!nanovx!mycro!scott
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
From: prangba@polari.online.com
Subject: Re: Mac-to-DOS File transfers
Keywords: Macintosh, PC, MS-DOS, diskettes, file transfer
Organization: Seattle Online Public Access Unix.  (206) 328-4944 (all lines telebit-equipped)
Date: Wed, 22 Jul 1992 15:28:01 GMT

bateman@nsslsun.nssl.uoknor.edu (Monte Bateman) writes:

>Someone posted here last week asking about MAC to DOS transfers.

>I just read an ad in PC Week (July 13, p. 105) about a (new?) product
>that will do this transfer.  Their ad says 

>------------------------  begin un-paid advertisement -----------------------
>MAC-to-DOS Transfer   from PLI

>The First Mac-to-DOS File transfer utility!
>  - Format Macintosh cartridges and diskettes on your PC
>  - Transfer text, graphics and spreadsheets from Mac media
>    to your PC
>  - Read Mac files on your PC
>  - Supports Microsoft compatible mice

>No additional hardware or cabling is needed!

I saw this ad and it allows 1.44MB Mac file transfers. This is really 
pretty simple since the format of the Mac HD disks (i.e. 18, 512 byte MFM
sectors, 80 tracks, 2 sides) is readable by a HD 3.5" disk drive. The 800k
and 400k disks are not stored using MFM and need a special controller to
read those disks so file transfers are much more difficult. 
Newsgroups: comp.os.msdos.programmer
From: mmoore@cs.ulowell.edu (Michael P. Moore)
Subject: Help!! PD Fortran Compiler Needed.
Organization: University of Massachusetts at Lowell Computer Science
Distribution: usa
Date: Thu, 30 Jul 1992 22:51:57 GMT

I need to find a PD fortran compiler that would work on a PC/XT.  I just need
a simple compiler and linker.  Please E-mail me because I don't read this 
newsgroup.

Thanks In Advance

Mike Moore



-- 
Send E-mail to             |  "Ah Don't See No Points on Yo Ears, boy" 
			   |   Dr. McCoy-Encounter At Farpoint
MOOREMI@WOODS.ULOWELL.EDU  |  "Captain, I Must Protest. I am NOT a merry man"
MMOORE@CS.ULOWELL.EDU      |   Lt. Worf- Q-Pid
From: fritz@hpfcbig.SDE.HP.COM (Gary Fritz (tmp))
Date: Fri, 24 Jul 1992 23:45:01 GMT
Subject: Re: advanced beginner needs book recomendations
Organization: HP SESD, Fort Collins, CO
Newsgroups: comp.os.msdos.programmer

...and as long as we're at it, how about an equivalent book for Windows?
The one I've got (Windows Programming, if I remember right) sucks.

Gary
Newsgroups: comp.os.msdos.programmer
From: yogi@cs.ubc.ca (Yossi Gil)
Subject: Re: MS C/C++ 7 disappointments
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Date: Thu, 30 Jul 92 05:43:27 GMT

econz@vax.oxford.ac.uk writes:

>  I have a large Dos application which I developed using MSC 6. Having
>read the review in Microsoft Systems Journal I was quite excited
>to receive MS C/C++ 7. Unfortunately it turned out to be a disappointment.
>I am programming for Dos, using C only.

Lots of gripe deleted.

Your comments proof the wisdom in the old saying: "If the version
number ends with .0 and it is from microsoft, don't buy it."

Miracles, like DOS 5.0, hardly occur more then once. 
--
Joseph (Yossi) Gil                 {alberta,uw-beaver,uunet}!ubc-cs!yogi
Dept. of Computer Science          yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
6356 Agricultural Road., Univ. of B.C.,             Tel: +1-604-822-8175
Vancouver, British Columbia, V6T 1Z2, Canada.       Fax: +1-604-822-5485
Newsgroups: comp.os.msdos.programmer
From: pvonk@scott.skidmore.edu (Pierre VonKaenel)
Subject: TMenuBox in TVision C++
Organization: Skidmore College, Saratoga Springs NY, 12866
Date: Tue, 28 Jul 1992 12:53:04 GMT


I'm using Borland's Turbo Vision (C++ version) to write a menu program
for our department.  I have a TMenuBar defined with appropriate
submenus.  What I need is a sub-submenu (or a pop up menu) and it
seems TMenuBox should do the trick.  Unfortunately, there are no
examples for using this class.  I tried to create it ala TMenuBar (the
constructors use the same types of parameters), but get errors when I
do

	*new TMenuBox( TRect[..stuff..], *new TSubMenu(....) ) ...
or	*new TMenuBox( TRect[ ...     ], *new TMenuItem(...) ) ...

It expects a TMenu type for the second parameter.  This is how
TMenuBar is defined, but using TSubMenu works for it.

Even if the above worked, it's not clear how a TMenuBox is started,
since TMenuBar is executed via the initMenuBar function of the
application.

All I want is a popup menu that looks similar to the following (I've
included the menu bar and a submenu of a simplified example)

	| Apps	|  Utils    | ...
	+-------+-----------|--
	|Languages  | <- chosen-
	|Math apps  |           |
	+-----------+           | popup menu results.
                                v
			+------------+
			| Pascal     |
			| Basic	     |
			+------------+


Is TMenuBox the appropriate class to use?

-- 
Pierre von Kaenel	| Skidmore College	     | pvonk@scott.skidmore.edu
Math & CS Dept.		| Saratoga Springs, NY 12866 | (518)584-5000 Ext 2391
When asked his position on euthanasia, our local state rep. responded:
"I support youth all over the world."


-- 
Pierre von Kaenel	| Skidmore College	     | pvonk@scott.skidmore.edu
Math & CS Dept.		| Saratoga Springs, NY 12866 | (518)584-5000 Ext 2391
When asked his position on euthanasia, our local state rep. responded:
"I support youth all over the world."
Newsgroups: comp.os.msdos.programmer
From: jim@n5ial.chi.il.us
Subject: Re: Guide for Shareware authors (was re: Accept Credit Cards ...)
Originator: jim@eddie
Reply-To: jim@n5ial.chi.il.us
Organization: me?  have you seen my desk?  : -)
Date: Fri, 24 Jul 1992 13:14:10 GMT

In article <711484403.F00006@cloud.pub.uu.oz.au>
hamish@cloud.pub.uu.oz.au (Hamish Moffatt) writes:
>nupairoj@cps.msu.edu.cps.msu.edu (Natawut Nupairoj) writes:

>> If someone interest, I will post it in this newsgroup or put it on some
>> sites. It's about 32 pages long.
>
>Yes, please!

a couple of days ago, I bought a book that some of y'all might just be
interested in having a look at....  it's called {Writing & Marketing
Shareware} (2nd ed) and is written by Steven Hudgik.

very nicely laid out, and very smooth reading (meaning, you don't get bogged
down by this thing...you just cruise right on through the pages).

he includes statistics and quotes from a survey he did of shareware authors,
and information on just about everything you can imagine (including where to
get MORE information).

so far, after spending a few hours the night before last and lunch yesterday
reading, I'm about half way through reading the book, and am anxious to get
on to the rest....

DISCLAIMER:  I have no connection with the author, his publisher, the stores
selling the book, the owners of the stores selling the book, the relatives
of the owners of the stores selling the book, the owners of the stores next
to the stores selling the book, the...... ah, you get the idea.  :-)
I'm just a very happy customer who's glad he happened to walk by and see
this book on the shelf while he was looking for something else at the
bookstore.

   --jim

\input std_disclaimer                     % 73 DE N5IAL (/9)
------------------------------------------------------------------------------
"[...] the plural of `mongoose' ought to be `polygoose'." [Jargon file 2.9.10]

INTERNET:  jim@n5ial.chi.il.us  |  grahj@gagme.chi.il.us  |  j.graham@ieee.org
UUCP:  gagme!n5ial!jim@clout.chi.il.us
AMATEUR RADIO:  n5ial@n9hsi (Chicago.IL.US.Earth)
------------------------------------------------------------------------------

Newsgroups: comp.os.msdos.programmer
From: csblm@uxa.ecn.bgu.edu (Brian Murphy)
Subject: Programming graphics mouse in C ?
Organization: Educational Computing Network
Date: Thu, 30 Jul 1992 13:19:12 GMT


I am attempting to write an application in C that uses a microsoft
compatible mouse in graphics mode.  The difficulty I am having is in the
call of the driver to determine the release status and number of cliks
since the last call.  Each time I call this function the status and
number of cliks appear to be 0.  Maybe (most probably) I don't
understand the sequence necessary to call this function properly.  

I have coded a fairly tight loop that waits for the mouse to rest and
then calls the release status function.  This always gives a zero status
and number of cliks although the cursor position of the mouse at button
release appears to be correct.  Could someone give some guidance on just
how the mouse calls should be interacted with.

Thanks in advance.
----------------------------------------------------------------------------
  Brian L. Murphy                         " If at first you don't succeed, 
  Eastern Illinois University               you're probably doing it
  Computer and Telecommunications Services  wrong."   -Anonymous 
  Charleston,  IL  61920 

Opinions expressed are my own and are not necessarily shared by Eastern
Illinois University.  But it doesn't hurt to hope, now does it ?    
---------------------------------------------------------------------------
Newsgroups: comp.os.msdos.programmer
From: jim@n5ial.chi.il.us
Subject: Re: changes to exe (binary) file
Originator: jim@eddie
Reply-To: jim@n5ial.chi.il.us
Organization: me?  have you seen my desk?  : -)
Date: Thu, 30 Jul 1992 18:25:25 GMT

In article <Bs7nEp.JLt@knot.ccs.queensu.ca> dmurdoch@QueensU.CA
(Duncan Murdoch) writes:

>Those are both quite dangerous.  Plenty of people use PKLITE or LZEXE or
>another .EXE compressor to modify .EXE files; if you blindly go reading
>and writing at a specific location, you'll mess up badly.

I would have thought look for the string you're changing, then when you
find it, replace it with the new version (which, of course, would be exactly
the same length).

>A better
>solution is to append the data to the .EXE file; the unbuggy compressors will
>think it's an overlay, and leave it alone, or refuse to work.  You
>should also be sure to put a signature in the record, so you can double
>check that whatever calculation you end up with is correct.

someone suggested this via e-mail, too....  but, if all you do is
tack on the text at the end of the .exe, how does the program access it?
does it have to then read the binary for itself every time it runs?  or
is there then a way of getting this into some data structure?

probably a dumb question, but then, I don't claim to know the format of
the compiled binary, either....have never needed to worry about it before.
:-)

>If you want to be really nice to your users, you'll give them the option
>of reading the config info from a config file, too.  That way it's easy
>to maintain multiple different configurations.

that is already there....all configuration is via an ASCII file.  the part
I'm thinking about is for registration.  sorry, should have mentioned that
in my first post.  several people have asked that....

>A nice way to do this (both ways) is using a Turbo Vision resource file,
>if you're using Borland's Pascal or C++.  It's very easy to use a config
>file if present or your .EXE if not, and all the signature checking is
>built in.

Turbo Vision?  I'm using Borland's Turbo C++ (version 1.0), but don't recall
reading about that.  is this something that got added when Borland dropped
the ``Turbo'' bit from the name?

thanks....
   --jim

\input std_disclaimer                     % 73 DE N5IAL (/9)
------------------------------------------------------------------------------
"[...] the plural of `mongoose' ought to be `polygoose'." [Jargon file 2.9.10]

INTERNET:  jim@n5ial.chi.il.us  |  grahj@gagme.chi.il.us  |  j.graham@ieee.org
UUCP:  gagme!n5ial!jim@clout.chi.il.us
AMATEUR RADIO:  n5ial@n9hsi (Chicago.IL.US.Earth)
------------------------------------------------------------------------------

Newsgroups: comp.os.msdos.programmer
From: tonyg@spock.retix.com (Tony "Salty Dog" Goulding)
Subject: PKZIP 1.93? Where?
Organization: Retix, Santa Monica CA
Date: Fri, 31 Jul 1992 00:45:30 GMT

I seem to have a ZIP'd file that the current PKUNZIP doesn't recognize.
Can someone direct me to (I think) 1.93 and where I might be able to ftp
it from?
Thanks
TOny.

-- 

==================================================================
Q:	What is the difference between LA and yoghurt?
A:	One is cultured...
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
From: iwirawan@tartarus.uwa.edu.au (Indra Wirawan)
Subject: BC++ 3.0 (Help !): Can't load Windebug.dll
Keywords: BC++ 3.0
Organization: University of Western Australia
Date: Mon, 27 Jul 1992 02:24:50 GMT

 I just installed BC++ 3.0 and everything looks fine except Turbo
 Profiler for Windows and Turbo Debugger for Windows. Here is my
 problem:
     - Both T. Profiler and T. Debugger refused to load a file (EXE file
       with its source code). The error message I received said "Can't 
       load Windebug.dll" (I launched them from Windows 3.1).

I've already checked that the file Windebug.dll exists in the same
directory as T. Profiler and T. Debugger reside in.

Have I done anything wrong ? (Path already set to include these
executable files).

Any suggestion will be appreciated.

Thank You

-------------------------------------------------------------------------
Indra Wirawan
The University of Western Australia
Nedlands, W.A. 6009
e-mail:iwirawan@tartarus.uwa.edu.au
       wirawa_i@kultarr.cs.uwa.oz.au


             "For things we have to learn before we can do them.
              We learn by doing"  
                                  Aristotle
--------------------------------------------------------------------------

 

Newsgroups: comp.os.msdos.programmer
From: resnicks@netcom.com (Steve Resnick)
Subject: Re: far struct - how to do it ?
Date: Thu, 30 Jul 92 16:58:30 GMT
Organization: What? Me organized? You should see my checkbook!
Distribution: comp.os.msdos.programmer

In article <1992Jul29.125835.14342@msc.cornell.edu> revesz@msc.cornell.edu (Peter Revesz) writes:
>Hi, Netters,
>
>My global data is basicly in structures. To avoid
>compile-time error message (global data >64 Kb) I have
>to make all global far.
>
>How to make a struct far?
>
>This way:
>
>struct one {
>    int far a[100];
>    double far b[2000];
>} one;
>
>or this way:
>
>struct two {
>    int a[100];
>    double b[2000];
>} far two;
>
>
>or this way?
>
>struct three {
>    int far a[100];
>    double far b[2000];
>} far three;
>
>
>Which the proper way to create far structs?
>Any help will be appreciated.
>
>Peter Revesz
>
>revesz@msc.cornell.edu

> Hi, Netters,
> 
> My global data is basicly in structures. To avoid
> compile-time error message (global data >64 Kb) I have
> to make all global far.
> 
> How to make a struct far?
> 
> This way:
> 
> struct one {
>     int far a[100];
>     double far b[2000];
> } one;
>
This won't work - the data being delcared is static, which will still
result in the same error message.

> or this way:
> 
> struct two {
>     int a[100];
>     double b[2000];
> } far two;
> 
> 
> or this way?
> 
> struct three {
>     int far a[100];
>     double far b[2000];
> } far three;
> 
> 
> Which the proper way to create far structs?
> Any help will be appreciated.
> 

How about:

struct foo {
	int *a;
	double *b;
} bar;
    .
    .
    .
    if ((bar.a = calloc(sizeof(int),100)) == NULL)
        .
        .
        .
    if ((bar.b = calloc(sizeof(double),2000)) == NULL)
        .
        .
        .


For one thing the far keyword is not portable, and is implementation dependant.
the meathod I have showed you is portable, and will work with ANSI C.


In 8086 real mode and 80286 protected mode, the processor's maximum memory
allocation unit is a 64K segment. (except in huge model where the compiler
generates the code necessary to 'tile' segments). When you compile your code,
static data goes in a single segment, DGROUP. If, at compile time, the static
data consists of pointers rather than the actual arrays, then the DGROUP
is smaller. If you are compiling under medium or large memory models,
you can allocate almost 64K per item, provided there is enough available
memory on the far heap. If you are using the compact, or small models,
you can add the far keyword in front of your pointer declarations and use
farcalloc (or farmalloc) to get memory.



Hope this helps ....


Steve

-- 
------------------------------------------------------------------------------
Steve Resnick - resnicks@netcom.com steve@axebbs.kludge.com FidoNet: 1:143/105
"I just want to be the one you run to, I just want to be the one you come to.
I just want to be there for someone, when the night comes" - J. Cocker
-----------------------------------------------------------------------------
From: ralf+@cs.cmu.edu (Ralf Brown)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Is this a "make" limitation?
Date: 22 Jul 92 01:53:58 GMT
Article-I.D.: cs.1992Jul22.015358.232212
Organization: School of Computer Science, Carnegie Mellon

In article <1992Jul21.170702.10187@midway.uchicago.edu> pynq@midway.uchicago.edu writes:
}(When compiling DVGLUE, this is an absolute essential!  Though, one of
}these days, I'm going to re-write the DVGLUE makefile to use batching.)

Yeah, loading a 1 meg executable takes rather more time than a 170K executable
(tcc 1.0, which is what I used to develop DVGLUE).  Even so, I put everything
(compiler, source, .OBJs, libraries) in a 1.2M RAMdisk.  One of these days
I may actually have time to update DVGLUE....
-- 
Internet: RALF+@CS.CMU.EDU   |The University would disclaim this if it knew...
FIDO: Ralf Brown 1:129/26.1  |"Wisdom is the quality that keeps you from
BIT: RALF%CS.CMU.EDU@CARNEGIE| getting into situations where you need it."
AT&Tnet: (412)268-3053 school|		-- Doug Larson
Newsgroups: comp.os.msdos.programmer
From: jefhor@auto-trol.com (Jeff Horn)
Subject: IEEE<-->VMS Number Conversions
Originator: jefhor@birtys
Organization: Auto-trol Technology Corporation
Date: Fri, 24 Jul 1992 18:34:23 GMT

Hello Everyone,
	I am looking for the source of a converter to change machine 
dependent number formats to IEEE (PC format).  I am mainly interested
in changing double formats on VAX systems to double format on IEEE
systems.  Most of the doubles that I deal with on the VAX side of things
are saved in the D_floating format.  This gives an 8 bit exponent.  On
the IEEE side the doubles need to have an 11 bit exponent.  I know that
between Sun4 and the PC (I'm using a 386 based chip) the only difference
is the byte ordering is completely backwards.  However, it is not that
easy on the VAX.  I know about the different biases on the exponents, but
am having a heck of a time getting anything to work right.  HELP!!

	If anyone has any code or knows of a book or reference to get, it
would sure be appreciated.

	You can email me at jefhor@auto-trol.com or 
			     jeffh@uokmax.ecn.uoknor.edu
or just repost to the group.  I try to read news every other day or so.

	Thanks.

Jeff 
-- 
-------------------------------------------------------------
Jeff Horn
jefhor@auto-trol.com
jeffh@uokmax.ecn.uoknor.edu
From: Jon Freivald <jaf@jaflrn.UUCP>
Newsgroups: comp.os.msdos.programmer
Subject: Re: moved my ibmdos.com ....
Date: Sat, 25 Jul 92 23:21:34 EDT
Organization: The Wizzard's Cave, East Meadow, NY

parry@yoyo.cc.monash.edu.au (Tom J Parry) writes:

> BTW Somebody told me on the weekend that there is an undocumented
> argument to FDISK which will fix the boot record of a disk that is
> faulty. I have never tried it nor do I know what kind of disks it works
> on (presumably only hard disks) but the option is FDISK /MBR
> (for master boot record). Anyone come across this one?

Yes indeed - in fact, have used it many times...  It's new with DOS 5.0,
but you can use it on any disk (assuming you booted 5.0 from a floppy)
with any DOS version on it.

Why do I use it? - Instant erradication of BSI viruses!  It's been quite
a handy tool for me - re-writing a clean Master Boot Record on an
infected hard disk.  Of course, you have to be booting from a clean
(preferably write protected - helps prevent accidents) floppy - also do
a hard-boot, as you are then *SURE* that memory is virus free when you
boot.

Jon

=============================================================================
		   Jon Freivald ( jaflrn!jaf@uunet.UU.NET )
	 Nothing is impossible for the man who doesn't have to do it.
=============================================================================
From: ilaine@panix.com (Liz Stokes)
Newsgroups: comp.os.msdos.programmer
Subject: TSR corruption by environment
Date: 23 Jul 92 22:39:45 GMT
Organization: PANIX Public Access Unix & Internet, NYC


	We seem to have this bug whereby when you spawn a command interpreter,
some of the reserved space of our tsr gets written into by the new command's
environment. Said tsr has been working correctly for years. Does this ring a 
bell in anyone's mind?
	-Liz
-- 
Liz Stokes         | Ilaine's EZ-Pregnancy Test 
Ilaine de Cameron  | ... "Now take the skein of handspun yarn out of the 
                   | dyebath. If it is green, you are with child, if it
ilaine@panix.com   | is blue, you are not."
Newsgroups: comp.os.msdos.programmer
From: sam4628@zeus.tamu.edu
Subject: BC++ - how to read a disk label?
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Wed, 22 Jul 1992 12:45:00 GMT

Does anyone know how to read the label on a disk from BC++3.1?
Thanks,

------------------------------------------------------------------------
| Steven A. McCluney                 |"Strange women lying in ponds    |
| sam4628@zeus.tamu.edu              | distributing swords is no basis |
| I'm a grad student, so my opinions | for a system of government!"    |
|    are worthless anyway            |          Dennis, to King Arthur |
------------------------------------------------------------------------
From: peterj@hparc0.aus.hp.com (Peter Westley)
Date: Tue, 28 Jul 1992 04:27:27 GMT
Subject: Re: Source Control Software on MS DOS?
Organization: HP Australasian Response Centre (Melbourne)