HDTenEightyP/NetNews huggingface dataset:
From: boggs@a.cs.okstate.edu (BOGGS RICHARD GRAN)
Subject: Re: "GP" Errors with BC 3.1
Organization: Oklahoma State University, Computer Science, Stillwater
Distribution: usa
Date: Thu, 7 Jan 93 07:02:12 GMT

In article <1993Jan6.214710.26976@schunix.uucp> sonix@schunix.uucp (Duane Morin) writes:
>Perhaps someone recognizes this problem.  My BC compile, which used to work
>just dandy, now randomly crashes with "FATAL ERROR:  GP fault" or somesuch
>similar message.  Not always on the same file, and not necessarily occurring

I've encountered the same problem with BC++ 3.1 IDE version.  I was rather
confused since BC++ 3.0 worked just fine with the same program.  

The tech guys at Borland told me that BC++ 3.1 barfs on some compile-time
errors.  The tech I spoke to recommended running prj2mak to convert the .prj
file to a make file and use the commandline version bcc.exe instead.  Turns out
he was right.  The commandline compiler gave me some error messages before
bombing out with a GP Fault.  I fixed the errors in the source, and it works
just peachy.  Odd that 3.0 doesn't do that...

Try running the commandline version and see if that gets any farther during the
compile process.  Worked for me.

-- 
Grant Boggs
boggs@a.cs.okstate.edu
Oklahoma State University
Stillwater, Oklahoma
Newsgroups: alt.msdos.programmer
From: yeel@aix.rpi.edu (Crimson Avenger)
Subject: try to get 1microsecond delay
Organization: None
Distribution: alt.msdos.programmer
Date: Tue, 5 Jan 1993 22:55:39 GMT

Any programmer ever tried changing the timer chip to get a 1 microsecond
delay between the different cpus?   Well, the smalles I can get in C (Borland)
is a "delay" function which only gives me 1 millisecond.  I need to get down
to microseconds.  a "for-loop" works, but I don't know to measure it exactly
the delay and it fails when you move from a 80386 33mhz to a 25mhz to a 20mhz.

Hmm. anyone with any idea. appreciate it.  E-mail is fine.


-- 
-- I am only USING this account.
-- Robert aka Crimson Avenger      (yeel@rpi.edu or crimson_avenger@mts.rpi.edu)
   Once a hacker, always a hacker. (usergza7@rpitsmts.bitnet)
From: rsl11@kuhub.cc.ukans.edu
Newsgroups: alt.msdos.programmer
Subject: Problems with SMARTDRIVE and PATH
Date: 9 Jan 93 14:04:48 CST
Organization: University of Kansas Academic Computing Services

Hello there,

	I have the following questions:
1. TO simulate disk cache with dos and windows you can either put the
statements
a) devicehigh=c:\smartdrv.sys     in the config.sys file or
b) loadhigh=c:\smartdrv.exe       in the autoexec.bat file

What is the difference between the 2 statements?
Also, how much cache would be recommended to have with a total of 4MB ram when
you run windows?

2. I have aproblem with the path statement of dos.
If I type the following statement in the dos prompt
PATH = C:\DOS; C:\WINDOWS; C:\STACKER;
in capital letters it works but if I put it in a batch file such as the
autoexec.bat file it tells me "Too many parameters". Does anybody have any
ideas as to what the problem might be?

	I would very much appreciate any relevant response.
Feel free to send mail to
Internet Address:telnet tesla.ece.ukans.edu
or
Internet Address: telnet kuhub.cc.ukans.edu
or
Internet Address: gt0430c@prism.gatech.edu
From: stern@mble.philips.be
Newsgroups: alt.msdos.programmer
Subject: QEMM flags 
Date: 6 Jan 93 13:09:48 MEWT
Organization: MBLE , Brussels, Belgium

Hi,

Could anybody explain to me the difference between the LOADHI flags:

   /happiest
   /bestfit

Thanks,

--  Marc Stern   <stern@mble.philips.be>
Newsgroups: alt.msdos.programmer
From: pynq@quads.uchicago.edu (Jeremy Mathers)
Subject: Re: Help Required with Dos variables
Reply-To: pynq@midway.uchicago.edu
Organization: D. J. Dougherty & Associates
Date: Mon, 4 Jan 1993 19:18:55 GMT

In article <babcock.12.0@cfa.harvard.edu> babcock@cfa.harvard.edu (Robert W. Babcock) writes:
>In article <1993Jan4.160029.26833@newton.ccs.tuns.ca> macdonak@newton.ccs.tuns.ca (Kevin MacDonald) writes:
>
>>Is there any way to display the contents of a single DOS variable?
>>I know you can display all current variables by typing SET, but there
>>doesn't appear to be any way to display variables individually.
>
>In a batch file you could do something like
>  echo COMSPEC is %COMSPEC%
>This can be redirected.

Well, no, in fact, it can't.  Batch file redirection doesn't work.

While conceding that the inability to reference env vars directly from
the shell is a enormous omission on the part of the COMMAND.COM
designers (& I can already hear the 4DOSers gathering up their voices),
I have had good luck with:

	set | grep VARNAME

************************************************************************
If you didn't get caught, did you really do it?

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
Newsgroups: alt.msdos.programmer
From: erica@wariat.org (Lady of the BitMode)
Subject: Borland C/C++ blues
Organization: Akademia Pana Kleksa, Public Access Uni* Site
Distribution: usa
Date: Fri, 8 Jan 1993 05:58:12 GMT

Hello, a have a question about borland c++/c 3.1.
I running win3.1 under dos5.0. I own borland c/c++ 3.1.

WHen I compile and execute the following code the windows just vanishes
away before I can cause an event to happen to exit WaitMessage function
call. Also, the text part of the button on the window is blank.

Basically, the program is terminating before anythings happends and all the the defined window get is a captions and a outline of  aa button.

Why ?, I copied this program out of a book. does anyone know why it won't run.
actual code followins.

*All code is small*

test.c:
=============================================================================
#include <windows.h>

int PASCAL WinMain( HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdLine,
int nCmdShow )
  {
  HWND hWnd;

  hWnd= CreateWindow( "BUTTON", "PRESS ME", BS_PUSHBUTTON,
  10, 10, 100, 100, NULL, NULL, hInstance, NULL ) ;
  ShowWindow( hWnd, nCmdShow ) ;
  WaitMessage();
  return 0;
  } 

test.def
=============================================================================
EXETYPE	WINDOWS
STUB	'WINSTUB.EXE'
CODE	PRELOAD MOVEABLE
DATA PRELOAD MOVEABLE MULTIPLE
HEAPSIZE 1024
STACKSIZE 5120

test.prj
=============================================================================
test.c
test.def
From: Jon Freivald <jaf@jaflrn.UUCP>
Newsgroups: alt.msdos.programmer
Subject: Re: Help Required with Dos variables
Date: Wed, 06 Jan 93 19:56:56 EST
Organization: The Wizzard's Cave, East Meadow, NY

macdonak@newton.ccs.tuns.ca (Kevin MacDonald) writes:

> Is there any way to display the contents of a single DOS variable?
> I know you can display all current variables by typing SET, but there
> doesn't appear to be any way to display variables individually.
> 
> I'm trying to setup a user log for our novell server and I thought
> since the users login time and username can be stored in dos
> variables, the simplest way to accomplish what I want to do would be 
> to redirect the contents of these variables to a file... but alas
> DOS doesn't seem to want to cooperate...
> 
> Rob

You don't specify what exactly you want to do, but here's a couple
examples: (We'll assume you're after the contents of a variable named
"USER")

DOS batch file:

    echo %%USER%% > logfile
         -or-
    echo %USER% > logfile

Using one or two '%' is DOS version and command interpreter dependent -
experiment -- mostly I use the single until I find a place it barfs,
then add the other...

C (Turbo to be specific - check your library reference)

    char user_var[20];     /* whatever length...? */
    user_var = getenv("USER");

Hope this helps...

Jon

=============================================================================
                   Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
	 Nothing is impossible for the man who doesn't have to do it.
		    PGP V2 public key available on request
=============================================================================
Newsgroups: alt.msdos.programmer
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: list of DOS interrupts
Organization: University of Vaasa, Finland
Date: Mon, 11 Jan 1993 20:52:52 GMT

In article <93011.125511KSADEGH@auvm.american.edu> <KSADEGH@auvm.american.edu> writes:
>I know it is a FAQ, but could somebody tell me where I can find a complete
>list of the DOS interrupts?

 284028 Apr 15  1991 garbo.uwasa.fi:/pc/programming/helppc21.zip

 359503 Jan  3 11:45 garbo.uwasa.fi:/pc/programming/inter33a.zip
 302607 Jan  3 11:45 garbo.uwasa.fi:/pc/programming/inter33b.zip
 187070 Jan  3 11:21 garbo.uwasa.fi:/pc/programming/inter33c.zip

"If you do not know how to go about getting this material, users are
welcome to email me for the prerecorded garbo.uwasa.fi instructions
(long, circa 29Kb).  North American users are referred to the Garbo
mirror on wuarchive.wustl.edu.  Australian users are referred to the
archie.au mirror.  For the Asian users there is the NCTUCCCA.edu.tw
mirror.  The mirrors may lag occasionally, or might not have all the
files.  If you do not receive my reply within five days, please ask
your own site's system manager to construct a returnable mail path
for you". 

..................................................................
Prof. Timo Salmi      Co-moderator of comp.archives.msdos.announce
Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
Faculty of Accounting & Industrial Management; University of Vaasa
Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
From: babcock@cfa.harvard.edu (Robert W. Babcock)
Newsgroups: alt.msdos.programmer
Subject: Re: Help Required with Dos variables
Date: 5 Jan 93 00:22:06 GMT
Organization: Smithsonian Astrophysical Observatory

In article <1993Jan4.191855.9869@midway.uchicago.edu> pynq@quads.uchicago.edu (Jeremy Mathers) writes:
>>In a batch file you could do something like
>>  echo COMSPEC is %COMSPEC%
>>This can be redirected.
>
>Well, no, in fact, it can't.  Batch file redirection doesn't work.

What I meant was that you can add indirection to the command inside the BAT 
file, i.e.
   echo COMSPEC is %COMSPEC% >>%1
with suitable tests to make sure %1 is defined.
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
From: bca@packard.ece.cmu.edu (Brian C. Anderson)
Subject: Re: "GP" Errors with BC 3.1
Originator: bca@packard.ece.cmu.edu
Reply-To: bca@packard.ece.cmu.edu (Brian C. Anderson)
Organization: Electrical and Computer Engineering, Carnegie Mellon
Distribution: usa
Date: Fri, 8 Jan 1993 15:11:41 GMT


|> 
|> In article <1993Jan6.214710.26976@schunix.uucp> sonix@schunix.uucp (Duane Morin) writes:
|> ... Stuff about GP errors deleted ...
|> >2) Got 3.1.  Can't even install the damn thing.  ZIPs are intermittently 
|> >	corrupted.  Little examination shows that, with cache memory off,
|> >	I have no problem unzipping, with it on, sometimes they get CRC
|> 
|> This is fair proof that your motherboard is not functioning in a happy way.
|> 486 motherboards are often very sensitive to the 5volt power supply voltage.
|> If the 5volt supply is running at the low end of tolerance, the cache
|> controller chips might not be able to function quickly enough.
|> 
|> Check to see that you have 5.00volts -0%, +5% on the motherboard's power
|> connector (red and black leads), when you have all of your system's
|> cards/disks installed.  If you aren't getting 5.00volts you should either
|> adjust your supply (HA HA HA, good luck!)  or get a new supply that does
|> give you 5.00volts.
|> 
|> You wouldn't have this problem if the motherboard suppliers wouldn't cheat.
|> What they do is buy all 25MHz 486 motherboards, without CPU or RAM.  They then
|> plug in the proper speed parts to get either 33MHz or 50MHz.  Well, this would
|> work, except that the motherboard manufacturer's grade the motherboards for
|> speed.  The ones that fail 50MHz become 33MHz boards, the ones that fail
|> 33MHz become 25MHz...
|> 
|> Now, you ask, "Why does the board work sometimes on my system?"
|> 
|> Well, It's like this, the boards are designed to run at 5v +/- 5%, and from
|> 0-70degrees C.  Logic chips such as the cache controller run their fastest
|> when they are cold and at the high voltage margin, and at their slowest when
|> they are hot, and at their low voltage margin.  Most of the time, the power
|> supplies will provide 5.0v on the nose, and you all will run your machines
|> in comfortable rooms, so you can get away with using parts that failed to
|> run full speed at 4.75v and 70C.  The clone builders are banking on this
|> happy coincedence.
|> 
|> Chuck Harris - WA3UQV
|> chuck@eng.umd.edu
|> 
|> 
Newsgroups: alt.msdos.programmer
From: msjle@uxa.ecn.bgu.edu (Joi L. Ellis)
Subject: Re: how to swap keys?
Organization: Educational Computing Network
Date: Thu, 7 Jan 1993 17:38:50 GMT

bfarrer@silver.ucs.indiana.edu (Brennecke N. Farrer) writes:

>In article <92363.002140SXK129@psuvm.psu.edu> Spaceman Spiff <SXK129@psuvm.psu.edu> writes:
>>i've got a game in which the movement of the cursor is controlled by the
>>a,w,s and z keys. i find this incredibly annoying and uncomfortable. is there
>>any way for me to be able to swap the a, w, s and z keys with the left, up,
>>right and down cursor keys respectively?
>>all help will be greatly appreciated.

>You could write a keyboard ISR that remaps the a,w,s, and z keys
>the arrow keys.  You'd have to hook int 16h and check for those
>keystrokes in the keyboard buffer.  Alternately you could write a TSR
>that handles the game port and stuffs the keyboard with a,w,s and z.
>Then you could use a joystick.

>- Brennecke N. Farrer

You can also experiment with vanilla ANSI.SYS and see if it will perform
that function for you.  We successfully removed undesirable commands
from a bulletin board console by mapping all the control and function
keys to null.  (The console was publicly accessible and we didn't want
passers-by messing with it.)  You may or may not be able to map the
cursor keys this way.  We created a text file containing all the mapping
commands, and have the workstation TYPE it before loading the BBS
software.  We have another that deletes the mappings when the BBS is
shut down.





>-- 
>Brennecke N. Farrer	    Internet addresses: bfarrer@silver.ucs.indiana.edu
>(317)-497-1692					bfarrer@venus.ucs.indiana.edu
>Programmer, M.A.I.L.CODE Lafayette IN 47901     (317)-448-4222
>I don't speak for my employer, only for me.
-- 
Joi Ellis                      msjle@uxa.ecn.bgu.edu
Student Residential Programs   Western Illinois University

Newsgroups: alt.msdos.programmer
From: macdonak@newton.ccs.tuns.ca (Kevin MacDonald)
Subject: Help Required with Dos variables
Date: Mon, 4 Jan 1993 16:00:29 GMT
Organization: Technical University of Nova Scotia, Halifax, N.S.

Is there any way to display the contents of a single DOS variable?
I know you can display all current variables by typing SET, but there
doesn't appear to be any way to display variables individually.

I'm trying to setup a user log for our novell server and I thought
since the users login time and username can be stored in dos
variables, the simplest way to accomplish what I want to do would be 
to redirect the contents of these variables to a file... but alas
DOS doesn't seem to want to cooperate...

Rob
From: @arrakis.denver.co.us (Bob Hood)
Newsgroups: alt.msdos.programmer
Subject: Help Required with Dos variables
Distribution: world
Date: Sat, 09 Jan 93 16:12:21 GMT
Organization: Bob's Programming Paradise
Reply-To: thor@arrakis.denver.co.us

In article <L6eZwB1w164w@jaflrn.UUCP> jaf@jaflrn.UUCP writes:
> 
> C (Turbo to be specific - check your library reference)
> 
>     char user_var[20];     /* whatever length...? */
>     user_var = getenv("USER");
> 
> Hope this helps...
> 
> Jon
> 

Whoa!  Time!  If I may be allowed to change the subject briefly...

THIS IS ABSOLUTELY WRONG!  The Turbo C prototype for getenv() is:

           char *getenv(const char *varname);
           
If you are using the above method of getting the value of an environment 
variable, you should be getting compile errors.  I created a test program
(appropriately enough, called "test.c") containing only the two lines
above.

    #include    <stdlib.h>
    
    void main(void)
    {
        char    user_var[20];
        
        user_var = getenv("USER");
    }

This is what I received when it was compiled:

    Borland C++  Version 2.0 Copyright (c) 1991 Borland International
    test.c:
    Error test.c 7: Lvalue required in function main
    *** 1 errors in Compile ***

getenv() returns a pointer to a character string, not a character string.
To work properly, you need to use one of these two fragments:

        char *user_var;
        user_var = getenv("USER");
        if(user_var == NULL) ...
        
    or
    
        char user_var[20];
        strncpy(user_var,getenv("USER"),19);
        if(*user_var == 0) ...
        
and then "user_var" can be used like a character array.

Thanks for letting me clarify.

Bob                          

Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
From: cascio@comet.enet.dec.com (Pete Cascio)
Subject: Re: Setting up serial ports
Organization: Digital Equipment Corp. Consulting Services, Colorado Springs
Date: Mon, 11 Jan 1993 08:35:37 GMT

In article <06JAN93.23400710.0038@music.mus.polymtl.ca>, CT64@music.mus.polymtl.ca (Nicolas Gauvin) writes...
>Is there any libraries that support 57600 and buffered 16550 that you
>would recommend? I'm looking for one, with ASM source if possible.

One that I've had good success with in a production environment is SilverWare's
SilverComm library.  It recognizes the 8250 to 16550 on PC's and PS/2's.  I
don't remember seeing who supports a 57600.  The library is in C and ASM with
source supplied.  They also have a dBASE/Clipper version.  It's supports
multiple port buffers and multiport serial cards.  They provide multiple ways
to read the data from the ports.  It's quite robust.  They also include
X/Y/Zmodem protocol transfer functions.  And terminal emulation support via
screen I/O functions.  Using the functions provided made the part of my
program dealing with serial I/O miniscule.  I believe that it supports up to
115K baud but I only used it at 19.2K.

Greenleaf is also a very popular library but haven't used it myself.
Newsgroups: alt.snowmobiles
From: deanb@cray.com (Dean Barker)
Subject: Speed Run - Amery, WI
Date: 4 Jan 93 17:05:44 CST


The first NSSR event which was scheduled for January 2nd in International 
Falls, MN was postponed due to lack of ice (!!). It sounds strange, but
it is true. The Falls received 36" (unofficial) of snow during the month
of December, but the lakes did not get enough time to freeze deep and now
the snow is providing insulation. The event was supposed to be on Rainy Lake,
and it has been re-scheduled for February 27th.

So, Barker's Racing hauled their sleds south to Amery, WI for a speed run.
The results were real similiar to a week ago in Phillips. The Pro Stock
turned a fast speed of 128 mph, the Super Stock (a Polaris Indy 650 with
pipes and a speed track) a fast speed of 118 mph, and the Improved Stock
(a '93 Polaris XLT Special with pipes) a fast time of 103 mph. We won 4 firsts
with the 3 sleds (the XLT was entered in two classes). I think we are all
ready for the real thing...the NSSR opener is now January 23rd in Forest Lake,
MN.

The remainder of our schedule looks like this (subject to change):

1/9 - Phillips, WI
1/17 - Duluth, MN
1/23 - Forest Lake, MN (NSSR)
1/30 - La Crosse, WI (NSSR)
2/6 - Amery, WI (NSSR)
2/7 - Hayward, WI
2/13 - Hoyt Lakes, MN (NSSR)
2/20 - Wautoma, WI (NSSR)
2/27 - International Falls, MN (NSSR)

----------------------------------------------------------
Dean Barker                             Cray Research, Inc.
deanb@cray.com                          655F Lone Oak Drive
(612) 683-5414                          Eagan, MN 55121
Newsgroups: alt.snowmobiles
From: dspooner@ua.d.umn.edu (dave spooner)
Newsgroups: alt.snowmobiles
Subject: Indy XLT
Date: 11 Jan 93 21:55:16 GMT
Distribution: usa
Organization: University of Minnesota, Duluth
NNTP-Posting-Host: ua.d.umn.edu


Has anybody else heard that you can safely advance the timing on the XLT 6
degrees as long as your careful about what gas you use??  I've heard that by
doing this you can really make the XLT scream in the low end??  Any comments?

Last week I was in about 6 inches of powder on a lake and outran an RXL
(91)..  I was pretty suprised.  Although on hardpack I doubt I'd win...

Dave Spooner
Newsgroups: alt.snowmobiles
From: rjoffe@sample.eng.ohio-state.edu (Ron Joffe)
Subject:  Re: Indy XLT
Organization: The Ohio State University Dept of Electrical Engineering
Date: Tue, 12 Jan 1993 22:06:32 GMT

Dave,

I would not recommend it. Advancing the timing by six degrees could be fine if
you were at sea level, but try going up a little. At higher altitudes, as little
as 2000 feet you could run into allot of trouble. First of all at higher
altitudes there less oxygen in the air, this results in a hotter running motor.
That coupled with your advanced timing could cause to much heat. The end result
could very well be a hole about the size of a dime in one of your pistons. I have
seen that happen before not on an XLT but the final effect should be the same. If
you want some more speed, I'd look into aftermarket accessories (carbs, exhaust,
clutch parts, etc)


Ron Joffe
 
Newsgroups: alt.snowmobiles
From: rob.twilt@rose.com (rob twilt)
Subject: UP Trip
Organization: Rose Media Inc, Toronto, Ontario.
Date: Wed, 6 Jan 1993 00:50:06 GMT
X-Gated-By: Usenet <==> RoseMail Gateway (v1.70)


Date Entered: 01-05-93 19:41

P(G>The four day New Years weekend provided the opportunity for the
P(G>second trip of the year. Our starting point is Gwinn Michigan and
P(G>plan a route through the east central UP. The trip starts like most -
P(G>leave Chicago in rain or fog and arrive with plenty of lake effect.
P(G>Gwinn greeted us with 6 to 8 inches. This was the least amount of
P(G>snow for the whole trip with all other locations measuring around 2
P(G>feet.

Phil, it sounds like a interesting trip.  It could have been worse.  At
least you had lots of snow and you didn't become a member of the Polar
Bear club.

You have to help your Canadian friends and tell us where UP is.  I've
tried to think of all the states that get snow but I don't know what UP
stands for.  What is DNR?  I thought possibly Dept. of Natural
Resources.  Are they responsible for grooming trails throughout the
States?

                            Rob

---
   SLMR 2.1a   I've run out of humourous taglines!
   RM 2.00 : RoseNet<=>Usenet Gateway : Rose Media 416-733-2285
Newsgroups: alt.snowmobiles