HDTenEightyP/NetNews huggingface dataset:
From: randy@rss.dl.nec.com (Randy Bullard)
Subject: VGA Pallete Question
Keywords: VGA vga color pallete
Organization: NEC America
Date: Fri, 17 Apr 1992 13:34:01 GMT

I'm pretty green in DOS programming (UNIX guy myself), so bear with
me on this.

I've been working on a 3D fractal terrain generator for grad school for
a few weeks and have it working pretty well with wire frame rendering.  I
decided to do surface shading with some extra time.  I've written the software
to use VGA 640x480 16 color mode.  I'm using BC++ 3.0.  I realized when I
first chose this VGA mode to work with that I only had 16 color to work with.
What I'm miffed about is that it appears from all of the Borland documentation
that these 16 colors must come out of the standard 64 color EGA pallete.  I
was under the impression that I could choose any 16 colors out of the quarter
million or whatever the VGA card is capable of displaying.  This is important
because I want to render my terrain in gray scales instead of some patchword
of oddball colors.

Is there a way to set the 16 colors in VGA 640x480 mode to colors other than
those in the standard EGA 64 color pallete?  Is this possible with BC 3.0 and
if it's not straightforward (i.e. twiddle these hardware registers like so and
then use an assembly program to..), does anybody have a code example they could send me?

Please mail responses to cut down on net clutter.  If there is sufficient
interest (and I doubt that), I'll post a summary.

-- 
- Randy Bullard  -    Dallas, TX randy@rss.dl.nec.com
					  Home (214)750-4934
					  Work (214)907-4463

| Have you ever rubbed your thigh with number 10 sandpaper and     |
| poured Red Devil turpentine on it?  I hate it when that happens. |
Newsgroups: comp.os.msdos.programmer
From: themos@umbc4.umbc.edu (Mr. Themos Pentakalos; ADMIN-COMP)
Subject:  Kermit
Organization: University of Maryland Baltimore Campus, Academic Computing Services
Date: Fri, 10 Apr 1992 21:09:15 GMT

Can someone tell me where I can find Kermit scripts written in DCL 
which go and upload files from the PC automatically?

Please reply to :   themos@umbc5.umbc.edu

thanks,

Newsgroups: comp.os.msdos.programmer
From: lam@ux1.cso.uiuc.edu (Ken Lam)
Subject: Telnet Daemon for PC...anyone have source code?
Organization: University of Illinois at Urbana
Date: Wed, 8 Apr 1992 03:56:40 GMT


Does anyone have a telnet daemon written for the PC.  Is there such code
ftp-able?

I'll even take UNIX code.....

Thanx in advance..  Ken Lam
   		    lam@ux1.cso.uiuc.edu
.
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ken Lam
SSQL Network Administrator                                  klam@uiucvmd(bitnet)
Manager, System Services                          lam@ux1.cso.uiuc.edu(Internet)
From: rjc@onion.princeton.edu (Raymond Chen)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Warm boot?  (All suggestions so far have been dangerous!)
Date: 11 Apr 92 21:16:18 GMT
Article-I.D.: Princeto.1992Apr11.211618.22597
Organization: Princeton University

After my article on the dangers of auto-reboot to disk caches, I
received the following piece of email, reposted with permission:

From georgef@microsoft.com (George Forsman)

Below is an acceptable version of a rebooter.  It makes a call to the
very useful, but very underused INT 15h, function 4fh.  This
particular call is trapped by a number (but I'm sure not all) disk
caches or anyone else who wants to clean up on reboot.

INT 15h, function 4Fh is a callout used by the INT 9 handler to let
someone else play with the scan code that it just grabbed from the
keyboard controller.  By poking in the CTRL+ALT shift flags, and then
issuing the INT 15h, you effectively simulate what the INT 9 handler
would be doing when you actually press the physical keys.

SMARTDRV v4.0 that is shipping with Windows 3.1 is a write-behind
cache, and it commits when the following code is run.  I have no idea
if hyperdisk, &c do the same.

0100   MOV      AX,0040
0103   MOV      DS,AX
0105   MOV      WORD PTR [0072],1234
010B   OR       WORD PTR [0017],000C
0111   MOV      AX,4F53
0114   INT      15
0116   JMP      F000:FFF0

If you wish to post this to the net, please do. I just don't feel
like arguing with vi tonight...
-- End of quoted message --

It's probably also a good idea to send out int 21/0d (disk reset) on
each disk drive as well as performing an INT 13 sector 0 read on
each hard drive.  Cache programs will probably listen to at least one of
these two operations and flush.

The Interrupt List also lists an int 2f/fe03 that Norton's NCACHE
listens to.
Newsgroups: comp.os.msdos.programmer
From: brown@NCoast.ORG (Stan Brown)
Subject: Re: MS C/C++ v7 - need info
Organization: Oak Road Systems, Cleveland Ohio USA
Date: Thu, 9 Apr 1992 15:10:16 GMT

In article <10125@goanna.cs.rmit.oz.au> gtj@goanna.cs.rmit.oz.au (Glenn T Jayaputera) writes:
>Hi..
>  I am thinking to buy MS C/C++ v7.  I would like to program in C++ and for
>  windows apps.  I am wondering if MS C/C++ v7 contains EVERYTHING that one
>  needs to build a windows program.
>  Do I need to buy SDK again??
>  What is the latest version of SDK?? v4 or v3.1?
>
>many thanks in any kind of pointers

I've emailed the poster as he requested, but I thought this might be of
general interest as well.

Can you get it yet?  Here in the States, shipment is scheduled for the
end of this month.

Anyway, to answer your question--

In an advertising insert from Microsoft in the latest catalog from
Programmer's Paradise, the copy says that the supplied classes include
OLE and GDI and you can make direct calls to the Windows API.  Microsoft
says the compiler has "the best C++ 2.1 compliance around."

I've read elsewhere that this version is fully documented on paper,
unlike 6.0.  I think someone posted that the manuals aggregate 5500 pages.

Microsoft lists the following "key features":

(begin quote)
  - Complete tools for Windows.  Everything you need to create Windows
    applications: resource editors, header files, and more.

  - Microsoft Foundation Classes encapsulate full Windows functionality
    into 60 reusable classes.

  - Precompiled headers and types dramatically improve compile time.
    C++ source code can be included in precompiled headers.

  - P-code option to dramatically reduce the size of your executables.

  - Automatic or explicit function inlining generates the fastest
    possible code.

  - Object-aware browser helps you navigate through objects, functions,
    variables, and more.

  - CodeView (R) debugger fully supports C++ inspection, expression
    evaluation, and more.

  - New CodeView and Programmer's Workbench interfaces have moveable,
    overlapping windows.

  - Advanced object-mapping technology for more efficient and higher-
    performing applications.

  - 32-bit development environment takes advantage of your 386 or better
    hardware for faster compiling and greater capacity.
(end quote)
-- 
Stan Brown, Oak Road Systems, Cleveland, Ohio, USA   brown@ncoast.org

"All my life I've wanted to be somebody. I see now I should have been
more specific."                                         --Lily Tomlin
From: ICWAS@ASUACAD.BITNET
Newsgroups: comp.os.msdos.programmer
Subject: Re: Power Basic's EXP2()
Date: 15 Apr 92 19:25:27 GMT
Organization: Arizona State University

From the PowerBasic manual:
EXP2(X) returns 2 to the Xth power.

If you run into more PowerBasic problems, try your library for
"Learning Basic" by Don Inman, or write me.

Bill Stockdale
Newsgroups: comp.os.msdos.programmer
From: joe@proto.com (Joe Huffman)
Subject: Re: Protected Mode C++ and Fortran
Organization: Prototronics @ Sandpoint, Idaho
Date: Sat, 11 Apr 1992 19:54:10 GMT
Keywords: Protected Mode, C++, Fortran

hmiller@osiris (Harry Miller) writes:

>I'm starting a project where I'll need to do protected mode programming
>in both C++ and Fortran (horrible, isn't it).  Rewriting the Fortran part
>of this work is not an immediate option unfortunately.

>Zortech C++ looks like the best bet for C++, but I have no idea about
>accessing Fortran with it. Anyone tried this yet.

As far as I know, Zortech is the only commercial C++ 32-bit protected mode
compiler for MSDOS available right now.  I expect there to be at least 3 
and maybe as many as 6 available by the end of the year.  I have not tried
to access Fortran with it, although I believe it is supposed to.

>Also, what about protected mode Fortran compilers.  What are the good and
>bad ones out there.

I just got a beta version of one in that is supposed to work well with 
Metaware High C (Metaware C++ is 'under construction').  I haven't tested
it yet, but the vendor (who shall remain nameless, until I have permission
to make it public) claims to have rather outstanding code and will probably
have graphics (Flash Graphics) and other third party library support 
available when it is released (next month I think... send me mail if you
want more information when it is available).

Lahey also ships a Fortran (again, I haven't used it) which generates 32-bit
protected mode code.

-- 
uunet!proto!joe
joe@proto.com
Newsgroups: comp.os.msdos.programmer
From: zcookbruc@cc.curtin.edu.au
Subject: BORLAND C Crashing
Organization: Curtin University of Technology
Date: Sun, 12 Apr 1992 14:44:02 GMT

I've been using TURBO C since version 1.01 (a very grotty package) up to the
later version I got BROLAND C++ 2.00 (Heaps better, even great!).

Since TURBO C++ 2.00 I've had a problem with one 386, that desptie throwing
money at hasn't gone away.

The PC is an early 386/16, No cache, 4Meg (Mortech I think), which keeps
crashing upon starting the IDE.

If I don't clean up all windows (<alt>-<space> C) before exiting, then *USUALLY*
the next time I run the IDE, I get the following message:

ERROR:
Internal error - Please report to Borland. Press ESC

And then upon pressing ESC:

exit error=0, winerror=3

and then the shell prompt.

I discussed this problem with BORLAND Australia many times, and after some
time was told that moving to BORLAND C++ 2.00 would cure the problems.

It didn't !

The only difference I get is that the first message now says:

ERROR:
sorry, unrecoverable internal error. Press ESC

I find this very annoying, especially I can "export" the problem to other
machines, simply by moving .DSK and .PRJ files. (Kinda makes it hard on a
network).

Following is a partial copy of the FAX I sent to Borland 22/3/91:

Screen upon booting:
________________________________________________________________________________
Phoenix Enhanced Video BIOS PLUS Version 1.00.00
Copyrite (c) 1986, 1987 Phoenix Technologies Ltd
All Rights Reserved
Video RAM 256KB

386-BIOS  (c) 1987 American Megatrends Inc

04096 KB OK







 (c) American Megatrends Inc.,
    SC&T-1102-011388-K0
________________________________________________________________________________


My config.sys looks like:
________________________________________________________________________________
Files = 35
Buffers = 20
Shell = c:\dos\command.com c:\dos /e:1024 /p
Country = 061,,c:\dos\country.sys
LastDrive = Z
________________________________________________________________________________

My autoexec.bat :
________________________________________________________________________________
@echo off
path ..;c:\dos;c:\tools;r:;s:;c:\batch;c:\tools\emacs;c:\applic
set bgi=c:\applic\bgi
set tctokstart=9,2,0,0
set stfscrz=520,400,120,400,640,80
set mfs=8,200,4
set help=c:\help\
set nvt80=3
set nvt132=57
subst h: c:\borland\tc\include
subst s: c:\borland
subst l: c:\borland\lib
subst r: c:\rwa
subst x: d:\libdvt
prompt $p$g
d:
________________________________________________________________________________

We have two other 386 machines (25Mhz) also with 4 Meg memory, and a NEC APC IV,
none of which cause the porblem to appear. This problem is very frustrating,
because It means that we have to take one of the other machines off-line to
do development.

Has anyone had a similar problem: could Borland U.S. reply - I get no joy
from Borland Australia, and am unwilling to keep forking out $ for new
versions, if they might not cure the problem.

...BRU
From: markh@csd4.csd.uwm.edu (Mark William Hopkins)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Power Basic's EXP2()
Date: 15 Apr 92 03:49:22 GMT
Organization: Computing Services Division, University of Wisconsin - Milwaukee

(From Power Basic)
In article <1992Apr9.033935.1991@uwm.edu> gibsonlp@csd4.csd.uwm.edu (Dean A Herman) writes:
>A representative code fragment:
>
>num1% = EXP2(ABS(num2%))

It's an integer to integer operation, and only integers have integer exponents.
So num1% must be 2 raised to the power ABS(num2%).
From: beshir@vax1.mankato.msus.edu
Newsgroups: comp.os.msdos.programmer
Subject: Need help with bgi turbo-c
Date: 7 Apr 92 07:06:37 GMT
Organization: Mankato State University



                   Need a help ,,,how i can change the ascii
 character(256) into defferent fonts,,in turbo-c program
any info ,example,dource will help,,,please
send e-mail beshir@vax1.mankato.msus.edu
ibrahim
Newsgroups: comp.os.msdos.programmer
From: dedgar@mta.ca
Subject: NDIS + NETBIOS info needed please
Reply-To: dedgar@mta.ca
Organization: Mount Allison U, Sackville, N.B. Canada 
Date: Thu, 16 Apr 1992 14:25:23 GMT

Hello Net

I am looking for information on NDIS and NETBIOS and how they fit into
the grand scheme of things.  Can anybody point me to books articles 
or other documentation.

In particular if anybody has IBM / Microsoft manual numbers + prices and
ordering info I would appreciate that as well as any comments about the
quality of the books. ISBN's would also be of a great deal of use.

I'm pretty sure Byte Magazine has had articles on both of these topics but my
search through the back issues has turned up nothing.  Is there anybody out
there who remembers these articles or has access to an index.

All info gratefully appreciated....

							Dale Edgar
							Mount Allison U
							Sackville, NB
							Canada
                                                        DEDGAR@MTA.CA

< were not in the middle of nowhere - but you can see it from here>
Newsgroups: comp.os.msdos.programmer
From: leonard@qiclab.scn.rain.com (Leonard Erickson)
Subject: Re: Long cmd line with Zoo: @<file_list>
Keywords: zoo long command lines
Reply-To: 70465.203@compuserve.com
Organization: SCN Research/Qic Laboratories of Tigard, Oregon.
Distribution: na
Date: Wed, 8 Apr 1992 03:40:35 GMT

burleigh@bronze.ucs.indiana.edu (Frank Burleigh) writes:

>2 questions:
>1. Perhaps Zoo *does* have the @<file> facility and I am missing it.
>2. If not, can I somehow trick DOS into handing Zoo <file> rather than
>CON when Zoo tries to read from stdin?  Please keep in mind that Zoo is
>being executed via spawnvp() from within my program.

Why not "zoo [parameters] <filelist" That *should* work!

And redirection ought to work, though you may have to invoke a second
copy of the shell to do it...


-- 
Leonard Erickson		      leonard@qiclab.scn.rain.com
CIS: [70465,203]			 70465.203@compuserve.com
FIDO:   1:105/56	 Leonard.Erickson@f56.n105.z1.fidonet.org
(The CIS address is checked daily. The others infrequently)
From: ralf+@cs.cmu.edu (Ralf Brown)
Newsgroups: comp.os.msdos.programmer
Subject: Re: 386 SX Bug
Keywords: 386SX, BUG, INTEL
Date: 16 Apr 92 03:11:28 GMT
Organization: School of Computer Science, Carnegie Mellon

In article <3544@cruzio.santa-cruz.ca.us> aki@cruzio.santa-cruz.ca.us writes:
}I was going through some of my old files and just happened to find a file
}describing a bug with the 386SX.  This particular problem is _not_ documented
}in any publication I could get my hands on,  so if there is anyone out there
}keeping track of Intel's bugs...  (BTW,  it was a pain to ID this problem,
}since all the debuggers would execute the command correctly.  I imagine
}trapped execution mode prevents the problem).  Description follows:

It's a bug in the code, not in the processor.  In order to guarantee that
self-modifying code will work, you must either flush the prefetch queue
with a branch instruction (JMP, CALL, RET, taken conditional, etc) or locate
the modifying instruction further from the modified instruction than the
size of the prefetch--ranging from 4 bytes on an 8088, 6 on an 8086, to
12 bytes on a 386 and as much as 32 bytes on a 486.

Your code doesn't work when run full-speed because the processor has already
fetched the CALL instruction at the time it is modified.  It works when
single-stepped because the interrupt called after each instruction when
single-stepping flushed the prefetch queue.
-- 
{backbone}!cs.cmu.edu!ralf  ARPA: RALF@CS.CMU.EDU  FIDO: Ralf Brown 1:129/26.1
BITnet: RALF%CS.CMU.EDU@CARNEGIE   AT&Tnet: (412)268-3053 (school)   FAX: ask
DISCLAIMER?  Did   |  Hansen's Library Axiom: The closest library doesn't
I claim something? |                          have the material you need.
From: kentiler@matt.ksu.ksu.edu (Kent Iler)
Newsgroups: comp.os.msdos.programmer
Subject: How to test for a key ALREADY pressed?
Date: 6 Apr 1992 17:29:13 -0500
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

Hello,
   Is there a way to test to see if a key is already pressed.  Let say I run
this program from the autoexec, and I want to see if the space bar is pressed.
If it is I want to do one thing, if not I want to do another.  I don't want to
wait there for a key to be pressed, just see if it already is.  I have C++ and
Turbo Pascal to program with.  Thanks.
						--Kent
From: ralf@ark.abg.sub.org (Ralf Stephan)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Borland -> Zortech: Do it ?
Date: 13 Apr 92 09:45:44 GMT
Article-I.D.: ark.29e9bab6wnr062
Organization: Private UUCP and Transputer Site, Augsburg/Bavaria/Germany

nevries@accucx.cc.ruu.nl (Nico de Vries.) writes:
> 
> If you start using ZOrtech at least DON'T trow away your Borland package. Al
> notice Borland C++ dor OS/2 2.0 is comming and this will generate 32 bit cod
> probably Zortech will be sooner (althought if you are in a hurry you can
> considder a C++->C translator and C/Set 2 or Watcom C 9.0 for OS.2 2.0.
             ^^^^^^^^^^^^^^^^^^

Could you or one recommend a (perhaps free) C++-to-C-translator?

Thanks!     --Ralf
------------"Eat it. Get yourself an egg and feed it." (Weird Al Jankovich)
From: aki@cruzio.santa-cruz.ca.us
Newsgroups: comp.os.msdos.programmer
Subject: Re: How to test for a key ALREADY pressed?
Date: 7 Apr 92 18:04:11 GMT
Article-I.D.: cruzio.3519
Reply-To: aki@cruzio.santa-cruz.ca.us

In article <rqjbpINNiqv@matt.ksu.ksu.edu>, kentiler@matt.ksu.ksu.edu (Kent Iler) writes:
> Hello,
>    Is there a way to test to see if a key is already pressed.  Let say I run
> this program from the autoexec, and I want to see if the space bar is pressed.
> If it is I want to do one thing, if not I want to do another.  I don't want to
> wait there for a key to be pressed, just see if it already is.  I have C++ and
> Turbo Pascal to program with.  Thanks.
> 						--Kent


Try this:

  if (bioskey(1)==0) /* No key pressed */
  else /* key pressed */

  bioskey is defined in bios.h,  but here is a generic version of it:

  int bioskey(int cmd)
  {
    struct REGPACK rp;
    rp.r_ax=cmd<<8;
    intr (0x16, &rp);
    if ( ((rp.r_flags&0x40)==0x40) && (cmd==1) )
      return 0; /* ZF set if no key pressed, return 0 */
    return rp.r_ax; /* else AH=Scan Code, AL=ASCII Char */
  }

Aki.
-- 
/  Phone: 408-662 9664 Fax: 662 9676  |  "Aki" pronounced: Ah-Key. I know  \ 
\  GENIE: A.KORHONEN  Home: /dev/nul  |  what I'm doing most of the time.  /
From: sph1@cbnewse.cb.att.com (stephen.p.hill)
Newsgroups: comp.os.msdos.programmer
Subject: Borland C++ 3.0 XMS question
Keywords: Borland C++, XMS
Date: 14 Apr 92 16:29:15 GMT
Organization: AT&T


A friend without net access is having a problem using 
Borland C++ V3.0.  He wants to declare a very large
array of structures, and the compiler won't let him. 
He tried the various memory models with no luck.

He looked in the BC++ docs and also in "Using Borland 
C++ 3.0" by Que publications, and he did find one 
example showing how to access the XMS on his 386 by
calling the HIMEM.SYS driver functions.  This example
code didn't work, and he is stumped. 

Does anyone have any ideas or know of any good books?


Please reply with E-mail, I will summarize if 
there is interest.

Stephen Hill

xanth@ihlpe.att.com
or
sph@ihlpe.att.com
From: sumargoh@serss0.fiu.edu (H. Sumargo)
Newsgroups: comp.os.msdos.programmer
Subject: A Device Driver that Can map any LPT# to network Port
Keywords: Network
Date: 15 Apr 92 01:03:09 GMT
Organization: Florida International Univ.


I appologize if this is not the right place to post the above question.  But, who knows if I get the response.

I have a 386-20 Zenith currently attached to the network with ethernet card.  What I would like to do is to be able to print from any DOS application to the network printer either directly or through a redirection.  For this, I am looking for a device driver that allows me to map any LPT# port to the network port such that if I print to that port, it will be redirected to any of the designated network printer.  Please send you response to sumargoh@serss0.fiu.edu

Thank you.
Newsgroups: comp.os.msdos.programmer
From: eletanjm@nuscc.nus.sg (Tan Jin Meng @ NUS)
Subject: REDUCING .EXE file size
Organization: National University of Singapore
Date: Mon, 13 Apr 1992 16:09:10 GMT

I am working on an application whose output executable is ballooning in
size.

Is there any way I can reduce the size of the executable? Using another
linker? Any other method?????

HELP!!!
From: jb@Materna.DE (Jeremy Brown)
Newsgroups: comp.os.msdos.programmer
Subject: Re: How to a print *really* big letters?
Date: 10 Apr 92 14:53:50 GMT

In article <phil.702787613@adam.adelaide.edu.au> phil@adam.adelaide.edu.au (Phil Kernick) writes:
>I need to be able to display a large character (one of the standard ASCII
>set) in the middle of a VGA display.
>This does not sound like it should be too difficult, but up to now, I have
>not been able to find a way to do it, without having to define all of the
>character set myself.
>I was hoping to be able to use TurboPascal6.0, but the font support is only
>vector, so while I can draw big characters, they are not solid - which I
>require for my application.
>I have already grepped through the simtel archive, and cannot find anything
>like this.

If you have an EGA/VGA card you could try the following :-

Entry:
  AH = 11H, AL = 30H
  BL = 0  - Contents of vector 1FH
       1  - Contents of vector 43H
       2  - Address of ROM 8 x 14 font
       3  - Address of ROM 8 x 8 font
       4  - Address of second half of ROM 8 x 8 font
       5  - Address of ROM 9 x 14 alternate font
       6  - Address of ROM 8 x 16 font
       7  - Address of ROM 9 x 16 alternate font

Exit:
  ES:BP - Address required
  CX    - Height of matrix
  DL    - Rows minus one

Now you can decode the font and display it on the screen as you want.

I used this technique for displaying large letters on the screen and
waiting for the user to press the coressponding key.

Hope this helps.

Jeremy
From: comptec91055@camins.camosun.bc.ca
Newsgroups: comp.os.msdos.programmer
Subject: Network id soft.
Date: 15 Apr 92 00:20:49 GMT
Organization: Camosun College



		Hello Hardware gurus and hackers:

			I am attempting to write a small routine which can be
executed on any pc that returns information on the resident network card (type
mem. cap. etc.)  (assembly/c routine).. My problem is that I am unsure of which
interrupts the card takes over when it is installed, whether or not these inter-
rupts are from the dos vector table or directly from the cpu, and how they can
be used to access card info.  If anyone has the time I would very much appreciate
 any information that could be provided.  I will send anyone that responds a copy
of the final program which does a series of hardware checks and verifications
on the pc, including nice output (not that anyone responding would need this,
but what the heck..)   If there are any ideas could you please e-mail them.
 			Thanks in advance,
	
			D. Rozee