HDTenEightyP/NetNews huggingface dataset:
From: bjkramer@remus.rutgers.edu (Brian Kramer)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Disable CTRL+BREAK from a TP6 program
Date: 19 Nov 92 00:53:09 GMT
Organization: Rutgers Univ., New Brunswick, N.J.

hallch@CS.ColoState.EDU (christopher hall) writes:


>>I am writing a TP6 program which requires the CTRL+BREAK sequence to be
>>disabled, as it loads in data tables and manipulates them in real time.
>>If CTRL+BREAK is pressed then the program bombs out and leaves the tables
>>in a real mess.
>>

If I am not mistaken there is a real simple one line statement you can put into
your TP programs that is something like checkbreak:=false.  If can't
think of it offhand....I'll look it up and get back to you.
Newsgroups: comp.os.msdos.programmer
From: sidney@borland.com (Sidney Markowitz)
Subject: Re: Borland C++ 4.0 - Who knows What?
Originator: sidney@genghis.borland.com
Organization: Borland International
Date: Wed, 18 Nov 1992 11:00:51 GMT

wdrdjh@thor.cf.ac.uk (Dr D J Harvey 92) writes:
>I've heard a rumour that Borland C++ 4.0 is due to ship at the end of this

To be a little bit more precise than Dave Draper's message:

This rumour (or rumor, over here) is unfounded. That means that it,
and any component of it, may be true, partially true, or completely
untrue. That includes even the name "Borland C++ 4.0" which may or may
not turn out to be the name of some future product, although it is
unlikely to be the name of our next spreadsheet :-)

Now, Duncan Murdoch's message about BP 7.0, which is a shipping
product, was accurate. It does have a royalty free 16-bit DPMI DOS
extender.

 -- sidney markowitz <sidney@borland.com>
    Borland International (Lanuages - R&D)
    ... amateur damage controller and rumor obfuscator :-)

Newsgroups: comp.os.msdos.programmer
From: bernyeh@engin.umich.edu (Bernard Yeh)
Subject: BC++ v. 2.0 & ATI graphics ultra
Date: Fri, 20 Nov 92 01:00:27 EST
Organization: University of Michigan Engineering, Ann Arbor
Distribution: world 

I have a problem with Borland C++ v 2.0 and my ATI Graphics Ultra Card.

Anyway, I recently upgraded my system from a 386/25 with VGA to
a 486/50 with an ATI Graphics Ultra. Unfortunately, it appears that
the IDE doesn't not know how to change the display when I shell to DOS or
try to run a program in the ide. Mainly, the display switches to the wrong mode
, 40x24 VGA text, or forgets to refresh and redraw the screen on return from
the shell or switching back from output.

I'm pretty sure its the program, because I've experimented with several
settings on the card with no success.

Also, the IDE doesn't recognize my mouse, which is a 3-button inport mouse
that is connected through the graphics card.

So it would be appreciated if someone could tell me where to find a patch
or a solution to this problem.

Please send replies via email.

Thank you.

Bernard Yeh
bernyeh@engin.umich.edu
From: jdmce@med.unc.edu (Duncan McEwen)
Newsgroups: comp.os.msdos.programmer
Subject: BorlandC++ and dynamic mem allocation
Date: 22 Nov 92 01:42:08 GMT
Organization: UNC School of Medicine
Originator: jdmce@cahaba

Can anyone help me figure out what is going on here?  I am new to 
both C and Borland C++.  Here is an extraction of code from a little
prime generating program I wrote containing, I'm pretty sure, the
offending code.

When compiled under the tiny module the program worked ok.  But
I wanted to examine larger ranges of potential primes then about
5000 numbers possible with the tiny module.

So, I switched to the the "compact" compiler option.  Again the
program worked ok, but if I increased numInRange (see Malloc)
to around 10000, the program misbehaved and seemed to wipe out
part of resident command.com.  That is, the program ran ok but
dos was then not able to load command.com

Does anyone have an hints as to something obvious I may be missing
that could acount for dynamically allocated memory being so naughty?


#include <stdio.h>
#include <conio.h>
#include <time.h>
#include <stdlib.h>
#include <ctype.h>
/*#include <sys\timeb.h>*/

long i,numInRange,xMax,xMin,temp,firstInRange,divArrayMax;
long divArray[4010];
long *primArray;

main ()
{
	;
	;
	;
		
      /*   initialize some variables  */
	if ((primArray = (long *) malloc(numInRange)) == NULL)
	   {
		printf("Not enough memory to allocate buffer\n");
		exit(1);  /* terminate program if out of memory */
	    }
	for (i = 0; i < numInRange; ++i)
		   *(primArray+i) = firstInRange++;
	for (i = 0; i < divArrayMax; ++i)
	   divArray[i] = i + 2;
	prime();
	;
	;
	;
}

void prime()
{

}
Newsgroups: comp.os.msdos.programmer
From: sl14@crux3.cit.cornell.edu (Stephen Lee)
Subject: Parallel Port Programming
Organization: Fantasy Zone Ithaca, Inc.
Date: Sun, 22 Nov 92 02:21:57 GMT

I'm doing a project which involves programming the parallel port on a
PC.  Can someone direct me to reference books about this subject?  The
information I need is

1) How to write data to the parallel port
2) How to READ data from the 8 parallel port data pins (I heard it is
possible to do so on ATs and most clones?)
3) How to access the control signals (ACK, etc.)

Rgds
Stephen
--
Stephen Lee
Internet: sl14@crux2.cit.cornell.edu
From: jos@and.nl (Jos Horsmeier)
Newsgroups: comp.os.msdos.programmer
Subject: Re: 'All Possible Combinations' Algorithm
Keywords: combinations
Date: 22 Nov 92 13:07:40 GMT
Organization: AND Software BV Rotterdam

In article <By109I.HEt@apollo.hp.com> holbrook@apollo.HP.COM (Alan R. Holbrook) writes:
|Can someone provide me with an algorithm suitable for writing a program
|to dump all possible combinations of 'n' elements taken 'm' at a time?
|That is, given the string 'abcdefghijklmnop', I'd like to be able to produce
|all possible combinations of, say, 'abcde', then of 'abcdf', or of 'cfilnop'
|then 'aceghilmp', etc.  I think you get the idea.

Nice little problem ... ok, here's my (naive) solution, enjoy.

kind regards,

Jos aka jos@and.nl

-----8<-----snip----------snip----------snip----------snip----------snip-----
#include <stdio.h>

#define MAXP 100		/* Any arbitrary value ... */
#define FREE 1			/* Number not used yet */
#define LOCK 0			/* Number used in a prev position */	

int permtab[MAXP];		/* Current permutation */
int locktab[MAXP];		/* Number (not) used table */

void perm(n, k)
int n, k;
{
	int i, j;

	for (i= 0; i < k; i++) {	/* Init first permutaion */
		permtab[i]= i;
		locktab[i]= LOCK;
	}

	for (i= k; i < n; i++)		/* [k ... n-1] are still free */
		locktab[i]= FREE;


	while (i >= 0) {
	/* 
	 * Simply print out the current permutation (n, k)
	 */
		for (i= 0; i < k; i++)
			printf("%4d ", permtab[i]);
		printf("\n");

	/*
	 * Find the rightmost position that can still be incremented,
	 * e.g. in (4,3) and the current permutation 124, we have to
	 * backup to the second position.
	 */
		for (i= k-1; i>= 0; i--) {

			locktab[permtab[i]]= FREE;

			for (j= permtab[i]+1; j < n; j++)
				if (locktab[j] == FREE) {
					locktab[j]= LOCK;
					permtab[i]= j;
					break;
				}
			if (j < n)
				break;
		}
	/*
	 * We found a rightmost position, now fill in
	 * all positions to the right of this one,
	 * e.g. 124 turned into 13x, we just have to
	 * find an unused number for x.
	 * If we didn't find a rightmost position in
	 * the previous loop, we're done.
	 */
		if (i >= 0) 
			for (i++; i < k; i++) 
				for (j= 0; j < n; j++)
					if (locktab[j] == FREE) {
						permtab[i]= j;
						locktab[j]= LOCK;
						break;
					}
	}
}
-----8<-----snip----------snip----------snip----------snip----------snip-----
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
From: u734120@bruny.cc.utas.edu.au (John Lamp)
Subject: Re: Number of subdirectories limited ?
Organization: University of Tasmania, Australia.
Date: Tue, 17 Nov 1992 23:12:17 GMT

ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:

>I know there is a limitation on the number of subdirectories in the
>root directory, but is there any limitation in directories other
>than "\" ?

There is a limit on the number of files in the root directory
(subdirectories are a special class of file).  There is no restriction on
the number of files (including subdirectories) in a subdirectory. 
However, there _is_ a limit to the total length of a path name, so be
careful when you nest subdirectories.

Cheers
John


--
   _--_|\             John Lamp, originating in Hobart, Tasmania
  /      \                 Phone: 002 23 1366 - Fax: 002 34 5685
  \_.--._/                   email: u734120@bruny.cc.utas.edu.au
        v <-----------------------------------------------------
Xref: sparky comp.os.msdos.programmer:10777 alt.msdos.programmer:2791
From: duck@nuustak.csir.co.za (Paul Ducklin)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: Re: Number of subdirectories limited ?
Date: 19 Nov 1992 21:18:03 +0200
Organization: CSIR, South AFrica
NNTP-Posting-Host: nuustak.csir.co.za

>I know there is a limitation on the number of subdirectories in the
>root directory, but is there any limitation in directories other
>than "\" ?

DOS doesn't allow path names more than 64 characters long. Since
each level of nesting requires one "\", there's a definite limit
to the amount of nesting you can do. As I recall, "path" includes
the drive letter and a colon, leaving you 62 chars for the
directory hierarchy name, and thus 31 levels of nesting. I s'pose
I'm probably off by one [where does the ASCIIZ terminator go ?],
but you get the idea.

Try it and see...


-- 
--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--
Paul Ducklin                                       duck@nuustak.csir.co.za

  CSIR Computer Virus Research Lab * Box 395 * Pretoria * 0001 S Africa
Newsgroups: comp.os.msdos.programmer
Subject: Re: MS-DOS in 386 protected mode
From: mchst12@cislabs.pitt.edu (Mark Hahn)
Date: 16 Nov 92 01:56:27 GMT
Reply-To: mchst12@pitt.edu
Keywords: DOS, protect-mode, v86

Actually, it's not that hard to run dos in a v86 box.
Find a copy of Al Williams' (useful) book "Dos5: A Developer's Guide."
The book isn't much about dos5, and instead focuses on how to write
useful stuff that dos fumbles.  In particular, it contains code for
"PROT," which is a dos extender that runs in protect mode and provides
access to the real-mode world through a v86 box.  It also contains code
to reprogram the PICs to seperate processor traps/execptions/faults
from hardware vectored interrupts.

A wonderful book, although the code is perhaps a bit hard to read,
and PROT is not explained in detail.

regards, Mark.
Newsgroups: comp.os.msdos.programmer
From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
Subject: Re: BC++ User friendly?
Organization: Texas Instruments Inc
Date: Wed, 18 Nov 1992 00:39:40 GMT

In <1992Nov17.132319.12010@bsu-ucs> 00skolis@leo.bsuvc.bsu.edu writes:

>What is the normal time to learn how to apply BC++ if one does not know
>exactly how to program in C. How user friendly is it?

If you don't know how to program in a language, the 'user
friendliness' of a compiler isn't going to matter a whole lot, is it?
After all, it's not like it's going to write your programs FOR you.

It does, however, have a fairly complete set of error messages and
warnings.  Just be sure to turn them all ON when you configure the
IDE. 

-- 
"Insisting on perfect safety is for people who don't have the balls to live
 in the real world."   -- Mary Shafer, NASA Ames Dryden
------------------------------------------------------------------------------
Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
From: u2105546@csdvax.csd.unsw.edu.au
Newsgroups: comp.os.msdos.programmer
Subject: Protected Mode 386 C compilers
Date: 15 Nov 92 09:50:43 +1000
Organization: University of New South Wales

I am trying to get people's opinions on what is the best protected mode,
that is for user programs, C and preferably C++ compiler on the market.
I have heard good things about Watcom C and a few others. Please email 
any comments you may have on this subject.

Some Background.
I, together with a small team of programmers, artists and musicians are in the
process of writing an arcade game. This is to be not just any ordinary arcade
game but an experimental Super VGA arcade game written specifically for the
Linear addressing mode of the ET4000 chipset (by the way, if anyone can tell me 
how best to remap this memory then please mail me.). Anyway, we are going to
be programming for large amounts of memory hence we wish to use protected mode. 

Any help would be greatly appreciated.                                     

---------------------------------------------------------------------------
Richard Laxton, computer engineering student at UNSW, Australia
u2105546@csdvax.csd.unsw.oz.au  <---- small mail packets
u2105546@cumulus.csd.unsw.oz.au <---- large mail packets

Wndows s gr t f&r hig  spe dd Com$unic*ations
OS/2 Rules forever...
Newsgroups: comp.os.msdos.programmer
Subject: Help with graphics.
From: moore@latcs2.lat.oz.au (Clinton W Moore)
Date: Tue, 17 Nov 1992 07:13:37 GMT
Organization: Comp Sci, La Trobe Uni, Australia

OK.. now this might sound rather stupid, but I have nowhere else to turn.
I'm having difficulty in working out the idea behind using 'planes' to
access video memory.  The basic idea of using a nibble which spans four
bytes to access a pixel is ok.  I'm just not sure of how the memory is
laid out for it.

My basic interpretation was that there must be four buffers, each 
containing a single bit, for each screen pixel.  The first buffer
starting at A0000.  I'm beginning to assume that this might be incorrect,
and suspect that this may have experienced graphics programmers howling
over their keyboards.  ok ok.. I can take the shame!  Just please,
could someone explain to me the principle of planes.

I *really* don't like using the bios, as I feel it is way to slow.
This might be an incorrect assumption, but I am new to programming
ibm's, so please forgive me.

Any help here would be greatly appreciated.  If anyone feels any
inclination to provide examples, then I'll inform you that I'm
using Borland C++, and assembly. 

       Thanks once again.

       Clinton Moore.
       =============================================================
      | Put your nose to the Grindstone. || moore@latcs1.lat.oz.au  |
      |    -Amalgamated toolmakers and   || Latrobe Uni. Australia. |
      |     Plastic Surgeons Ltd.        || "Hi Mum!"               | 
       =============================================================
From: 2ftobelly@kuhub.cc.ukans.edu
Newsgroups: comp.os.msdos.programmer
Subject: problem with FCB-findfirst
Date: 14 Nov 92 23:42:09 CST
Organization: University of Kansas Academic Computing Services

Hi!

I am exploring how DOS works, and especially the file-functions. The
problem is that my reference ("The programmer's PC source book" by
Thom Hogan) seems to contain an error, but I am not sure about this.

When I use interrupt 21h fn 11h (find first file with fcb - I know
that fcb's are outdated, but eg. DIR still uses fcbs) the book sais
that the DTA is filled with the drive # and a DIRENTRY structure.

This doesn't seem to be the case, because the first byte of the DTA
after calling fn 11h is 0ffh, which could mean that the DTA is filled
with an extended fcb-structure (opened or unopened?). But I am not sure
about this, also because you also have to supply an unopened fcb (with
ds:dx pointing to it) to this function. 

Does anybody know what the DTA is filled with after a call to int 21h
function 11h?

Thanks in advance for any reply.

Wimjan Jansen van de Laak
(2ftobelly@kuhub.cc.ukans.edu)  

----------------------------------------------------------------------
If our brain was so simple that we could understand it, we would be so
simple that we couldn't.
----------------------------------------------------------------------
From: bell@nella4.cc.monash.edu.au (mr g.a. bell)
Newsgroups: comp.os.msdos.programmer
Subject: TurboVision and sound card
Keywords: help,Tvision,sbpro
Date: 15 Nov 92 21:56:15 GMT
Article-I.D.: nella4.bell.721864575
Organization: Monash University, Melb., Australia.



Hi Netters, 

I am having trouble linking in the sbpro libraries
to a TurboVision program. The application works fine if I remove
the sound card calls but when I place the sbpro code in the program
it does not work.

I have found the the order of linking is also a problem, for example
if you do not link in the sbpro library last the program hangs the
computer. You must have not default libs linked and add the libs
you need to the project file.

I get an Abnormal Program termination error which does not occur
when no sbpro libs are linked. 

Can any one help me.

I am using BCC 3.1 on a 486.

Thanks,

Gary.


-- 
``````````` bell@nellads.cc.monash.edu.au `````````````````````````````````````
| Gary Bell                                                                   |
| Department of Robotics and Digital Technology                               |
|Faculty of Computing, Caulfield Campus, Monash University, Australia         |
Newsgroups: comp.os.msdos.programmer
From: Ron_Mcnutt@mindlink.bc.ca (Ron Mcnutt)
Subject: FAT Problem
Organization: MIND LINK! - British Columbia, Canada
Date: Sun, 22 Nov 1992 07:21:44 GMT

At least I think it's a fat problem.
I am running DOS 5.0 on a 386DX33.
Was working in an
Was working in an application program when was forced to warm boot. After
doing so, I got messages that "first allocation unit is invalid, entry
truncated" for the file I was working with. The bak file came back as "cross
linked on allocation unit 6087" Anyone know what this is all about? Can I
recover these files? They seem to be on the hard drive in their proper
subdirectories, but I am unable to open or access them - the system just
freezes up. Any helps appreciated...

Thanks in advance

Ron McNutt
N. Vancouver BC

Newsgroups: comp.os.msdos.programmer,comp.os.ms-windows.programmer.misc
From: rbrager@cbnewsg.cb.att.com (rbrager)
Subject: Re: Poll : Microsoft support on the Internet
Organization: AT&T
Date: Mon, 16 Nov 1992 13:52:08 GMT

From article <1992Nov14.200035.28509@news.ysu.edu>, by doug@cc.ysu.edu (Doug Sewell):
> olga@csiatl.Gwinnett.COM (olga from the volga) writes:
> : jlorimer@smaug.dvr.ppoc.com (John D. Lorimer (PPOC systems administrator)) writes:
> : > Absolutely a vote for "Yes Microsoft support on Internet".  Internet would be
> : > ideal place for Microsoft to support their products, especially Windows NT. 
> : > Since I have made no plans to support Compuserve nor will I.
> : 
> : YES YES YES !!! I support it also!
> : 
> Interesting enough, they have a FREE bulletin board system, that I have
> to call long distance to access.  But they don't have any form of anony-

At 2400 baud, $ 0.11 a minute isn't free.  Internet support by Microsoft,
Borland and others would be a great idea.  Support via Compu$erve is good but I
find it rather expensive  since PC's are a hobby at this point.


> mous FTP to get the same things as are on the board.
> 
> That in itself would be nice, and probably not too painful to implement.
> --
> Doug Sewell, Tech Support, Computer Center, Youngstown State University
> doug@cc.ysu.edu	   doug@ysub.bitnet	<internet>!cc.ysu.edu!doug
> 
> cat core | uuencode bunny.dropping | mail jp@tygra.michigan.com

Robert (Bob) B. Rager
AT&T FSAT
att!bromo!rbr rbr@bromo.emspnc.att.com

Ain't no place like ${HOME}; not even C:\
Newsgroups: comp.os.msdos.programmer,rec.games.programmer
From: macg9505@uxa.cso.uiuc.edu (Michael Alan Corn)
Newsgroups: comp.os.msdos.programmer
Subject: BC++ time related Global Variables
Date: 17 Nov 92 15:57:20 GMT
Article-I.D.: news.BxvAzo.2My
Organization: University of Illinois at Urbana


      
      This is probably too simply for you C/C++ gurus out there, but how does
one set the global variables for timezone and day light savings in BC++?
The following doesn't work:
misc includes
extern long timezone;
extern int  daylight;
long getuservalue(void);

main()
{
time_t t;
struct tm *gmt;
timezone = getuservalue();
daylight = 1;                 //default is 0;
t = time(NULL);
localtime(&t);
gmt = gmtime(&t);
printf("GMT is:    %s",asctime(gmt));
return 0;
}

No matter what value is entered for timezone, the gmt value doesn't change. 
Since the gmt is a function of localtime, timezone, and daylight, it should
change. If the above code (with appropriate #includes) is run, the gmt
computed is the same regardless of the value timezone is set to, or the value
of daylight.  Using the tzset alternative has little value as well:

main()
{
time_t t;
struct tm *gmt1, *gmt2;
char *tzstr1 = "TZ=PST8";
char *tzstr2 = "TZ=PST8PDT";
putenv(tzstr1);
tzset();
t = time(NULL);
localtime(&t);
gmt1 = gmtime(&t);
putenv(tzstr2);
tzset();
t = time(NULL);
localtime(&t);
gmt2 = gmtime(&t);
printf("gmt1 = %s, gmt2 = %s",asctime(gmt1),asctime(gmt2));
return 0;
}

I've yet to get the gmt, or any other time function to respond differently by
any setting of the "TZ" variable, save for the middle number.  So if someone
could please explain, either what I'm doing wrong,( I'd like to have the user
enter the difference between gmt and local time, and whether daylight savings
is in effect, and set the appropriate values myself), or confirm something is
amiss, I would be greatly indebted.  I wouldn't even complain if Borland
responded, since I've already spent 90 min. on hold over the last week and
have given up on tech support. Post or email to macg9505@uxa.cso.uiuc.edu 
Thanks in advance.  Mike
Newsgroups: comp.os.msdos.programmer,comp.os.ms-windows.programmer.misc
From: robertk@rkrajewski.lotus.com (Robert Krajewski)
Subject: Re: Poll : Microsoft support on the Internet
Organization: Lotus Development Corporation
	<RUJO.92Nov20163107@ulrik.uio.no>
Date: 23 Nov 92 13:47:34

In article <RUJO.92Nov20163107@ulrik.uio.no> rujo@ulrik.uio.no (Rune J|rgensen) writes:

   YES!YES!YES!YES!

This is the most pointless Usenet poll I've ever seen.

Why don't we have a poll that proposes that MS gives you free ice
cream, too ?
Newsgroups: comp.os.msdos.programmer
From: tfj@apusapus.demon.co.uk (Trevor Jenkins)
Subject: Poll : Microsoft support on the Internet 
Distribution: world
Organization: Job hunters use Parachute
Date: Sat, 21 Nov 1992 11:42:53 +0000


In article <1992Nov18.190043.12352@borland.com> dave@borland.com writes:

> This thread should be allowed to DIE...

I disagree! Why?

> Representatives from Microsoft have already replied to this saying it
> WON'T happen!

So that they can see the groundswell of opinion against them. I for one
will NOT pay the exorbitant rates for CI$ access as well as paying for
internet access.

> Borland International               |     Winners make it happen!
> dave@borland.com                    |

It ought to be obvious to Microsoft that their competitors ARE using the
Internet.

Regards, Trevor.

---------------------------------------------------------------------------
Trevor Jenkins                                                Re: "deemed!"
134 Frankland Rd, Croxley Green, Rickmansworth, WD3 3AU, England
email: tfj@apusapus.demon.co.uk                               radio: G6AJG  
phone: +44 (0)923 776436
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker)
Subject: Number of subdirectories limited ?
Organization: Techn. University of Berlin, Germany
Date: Tue, 17 Nov 1992 11:11:30 GMT

Hi,

I know there is a limitation on the number of subdirectories in the
root directory, but is there any limitation in directories other
than "\" ?

Thanks for any info, Ernst.
--

-----------------------------------------------------------------------------
Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
-----------------------------------------------------------------------------
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer