HDTenEightyP/NetNews huggingface dataset:
From: hmiller@osiris.cso.uiuc.edu (Harry Miller)
Subject: Re: Turbo Vision is too fat!
Organization: University of Illinois at Urbana
Date: Mon, 11 Jan 1993 18:25:19 GMT

msc@snoopy.ncku.edu.tw (Mac Su-Cheong (MSC)) writes:

>Hello,

>  Recently I take a look at Turbo Vision inside Borland C++ 3.1 with
>Apllication Framework. Then I build the .exe of the program hello.cpp
>WOW, the .exe file size is 200K+ ! The program is so simple and it is
>unacceptable big for me. I have tried most of the settings in Option
>but in vain, and inside the manual not much is deal with this (the 
>whole user guide of TV just talk about TV programming). Is it possible
>to slim the TV executable file? I want to write some program and 
>distribute them to the public and I am now looking for other shareware
>or freeware window and menu libraries for C on msdos.

>  Thanks in advance.

Is the debug option set.  The TV library is compiled without debugging,
but when you have debugging set, all classes (there are quite a few), data
and your code is given debug info.  Considering thatg TV is a fairly 
extensive (though by no means exhaustive) Text GUI library, that is a
lot of debug info.

The project I'm working on has an executable size of just under 640K,
with debug info included.  But only ~200K without debug info.  This
causes a slight annoyance. If I want to do debugging I need to
put debug info in only the areas I'm interested in. I can not use
the debug menu option, since that applies to all files.

Harry E. Miller ----------------- just a jerk lurking on the net
hmiller@osiris.cso.uiuc.edu ----- where to send the hate mail
From: anthony@cibbs.UUCP (Anthony Quinn)
Newsgroups: comp.os.msdos.programmer
Subject: Re: ATI Ultra Pro programming information request
Date: Sun, 10 Jan 93 00:02:10 EST
Organization: DataSoft Consulting (Toronto, Ont. Canada)

sjm@miles.com (Scott Mark) writes:

> I know that it's only been out a little while, but are there any drivers
> for the ATI Ultra Pro?  I got mine with a new Gateway computer- I'm sure
> that lots of people have them by now.
> 
> I'd be willing to start with something as simple as the list of modes
> and the Int values for setting them, and a simple plot(row, col) algorithm.
>
> I'm hoping to get POV-Ray working with the Ultra Pro in 16 and 24-bit modes.

It is not as simple as int's and mode numbers on the Graphics Ultra Pro. The
16 bit and 24 bit color are ONLY available through the graphics coprocessor
(ie. the MACH32 chip) and not the VGA section. This means you have to write to
the registers of the card directly to manipulate any of the high color modes.

> Any help would be appreciated -- but it takes me about five days to find
> a graphics library package and ftp it here with the mail server.  I'd much
> rather hear "yes -- pub/foo on host@etc has definitely got what you want"
> rather than "gee, you might want to look at the latest VGAkit..."

I am not awhere of any libraries for this card as yet. I am sure anyone
writing such a beast would have one hot item. Currently, you'd either have to
contact ATI for development information, or suffer with Windows and their
Windows drivers. The only other option you have is to use a graphics library
supporting 8514/A as the ATI card is register compatible with this standard as
well.

If you want to contact ATI for development information, I know they will
release it under non-disclosure. Their email address is
74740.667@compuserve.com

Hope this helps, somewhat.

---____  ____
  //     //     Anthony Quinn       Toronto, Ont., Canada
 //     //     anthony@cibbs.UUCP   "Take off to the Great White North..."
 ==== ====    uunorth!cibbs!anthony
Newsgroups: comp.os.msdos.programmer
From: muszynsk@bcstec.ca.boeing.com (Richard Muszynski)
Subject: Re: Write protecting ONE partition of a hd
Organization: Boeing Computer Services
Date: Wed, 6 Jan 1993 18:12:04 GMT

STDN%MARIST.bitnet@YaleVM.YCC.Yale.Edu (Dan Newcombe) writes:

>Does anyone out there know of any programs that will write
>protect just a partition of a hard drive?  All that I've seen
>block and call to device 80h, the first physical drive which
>covers all of the partitions.

Dan

Check out the December issue of PC Magazine, page 373.
From: johannes.beekhuizen@contrast.wlink.nl (Johannes Beekhuizen)
Newsgroups: comp.os.msdos.programmer
Subject: Looking for PD or Commercial Xmodem/ymodem/zmodem package
Date: Sat, 09 Jan 1993 10:13:44

Hello Russell,

On Friday January 08 1993, Russell Trotter wrote to (crosspost 1) All:

 RT> We are looking for Xmodem/Ymodem/Zmodem protocol package for Sun Unix
 RT> workstations, IBM PC's and, Macintosh's.  Anybody know of
 RT> them in existence.  It doesn't have to be specific to each platform,

There is a version of Omen's RZSZ for Unix. I think I saw it on Simtel20, but
I'm not certain. It runs on the Sun without modifications (option in the
makefile provided).

Regards,

           Hans.

fidonet  2:281/527.5
yan-net  123:3183/101
e-mail   johannes.beekhuizen@contrast.wlink.nl
Newsgroups: comp.os.msdos.programmer
From: parki@csri.toronto.edu (Brian Parkinson)
Subject: Help on Memory Manager
Organization: CSRI, University of Toronto
Distribution: na
Date: 12 Jan 93 13:30:16 GMT

A general question (re memory management under DOS).

If I allocate a pointer to 64K in Borland C.
unsigned char *ptr = farmalloc(0xFFFF);

The pointer has some segment, and the offset is always
4 (four).  This means that the last few bytes of data are
actually in the NEXT segment !!  If the pointer is declared
to be far, then these bytes roll to the bottom of the same
segment.

My question is twofold :

(1)  What does DOS do with these 4 extra bytes - are they
used by the memory manager of DOS (or, in an even weirder
scenario, is this a quirk of Borland C, and would not appear
in Microsoft C) ???

(2)  I need to have a 64K (EXACTLY) byte memory block in an
application, and would like to be aligned from the base of
the segment (i.e. an offset of 0 (zero) not 4 (four)), so
if I just say "ptr-=4", the pointer will now be at the base
of the segment, but..... is this inviting disaster ???

Does someone out there know the answers to this (what I
consider to be a) quirk ?



-- 
					What's the point in callin' shots
Brian Parkinson				This cue ain't straight in line
<parki@csri.toronto.edu.ca>		The cue-ball's made of styrofoam
					And no-one's got the time

Newsgroups: comp.os.msdos.programmer
From: sjm@miles.com (Scott Mark)
Subject: ATI Ultra Pro programming information request
Organization: Miles Inc., Diagnostics Division, Elkhart, IN
Date: Wed, 6 Jan 1993 01:13:57 GMT

I know that it's only been out a little while, but are there any drivers
for the ATI Ultra Pro?  I got mine with a new Gateway computer- I'm sure
that lots of people have them by now.

I'd be willing to start with something as simple as the list of modes
and the Int values for setting them, and a simple plot(row, col) algorithm.

I'm hoping to get POV-Ray working with the Ultra Pro in 16 and 24-bit modes.

Any help would be appreciated -- but it takes me about five days to find
a graphics library package and ftp it here with the mail server.  I'd much
rather hear "yes -- pub/foo on host@etc has definitely got what you want"
rather than "gee, you might want to look at the latest VGAkit..."

Thanks in advance.

Scott Mark
sjm@miles.com
Newsgroups: comp.os.msdos.programmer
From: msc@snoopy.ncku.edu.tw (Mac Su-Cheong (MSC))
Subject: Re: Turbo Vision is too fat!
Organization: National Cheng Kung University, Tainan, Taiwan
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 11 Jan 1993 12:54:37 GMT

The OTHER One True God (tsullivan@trentu.ca) wrote:
:
  [some stuffs delete]
:
:    Remember that when using any large programming development system that 
: there will be an initial jump in code size, and as you progress, it will go 
: down as the %age of your code.
:   For instance, the 200K "Hello, world" program is excessive, but if you 
: were to build in a complete accounting system, or something, the total code 
: size would be ~300K (or so). You'll find that most windowing libs will have 
: the same initial jump in code. The amount of code size jump will depend on 
: the complexity of the lib. TV is a very complex, complete library.
:
  hmmm, I know TV is a very complete lib (it's nice), but is it possible
  to separate the one big library into many small libraries? Then I can
  link those I needed and leave out those unnecessary, resulting in
  smaller executable file. It is very rare for me to write big program,
  most of my programs don't exceed 1000 lines. Is it possible to break
  that lib into smaller libs by myself?

  Just a few thoughts. Thanks for your response.

------------------------------------------------------------------------------
Mac Su-Cheong (MSC)       | Computer Science Division, |          __o
msc@eembox.ncku.edu.tw    | Department of E.E.,        |         -\<,
nckus089@twnmoe10.bitnet  | National Cheng Kung Univ., |        O/ O
msc@snoopy.ncku.edu.tw    | Tainan, Taiwan, R.O.C.     | Hey....I am the wind!
From: erwin#m#_mike.ast_-_tac_mail_server@msgate.corp.apple.com (Mike Erwin)
Newsgroups: comp.os.msdos.programmer
Subject: DOS Networking Primitives Needed for C
Date: 5 Jan 93 00:29:30 GMT
Organization: Apple Computer, Inc.


Network Software: Lantastic
Language:  I'm using TC 2.0, but any code for DOS is fine

Does anyone have any primitives that deal with the DOS record locking scheme?
 I have tried for three days now to implement a system whereby all users have
read access to the file until someone wishes to update a record; at that
time, the file is locked, the user makes changes, then the file is unlocked;
but, to no avail.  

Would anyone who has tackled a similar situation please mail me any code or
personal comments that deal with this? 

I have a few minor questions concerning what is happening at an operating
system level:

1>  How does the TC lock() function actually work (low level)?  And...  Say
you lock the whole file, does your process (the one that made the lock) still
have RW access to the file? (apparently you do).

2>  What DOS system calls are being made to negotiate the file sharing
functions?

Thanks

|  "From the lightning in the sky, as it passed me flying by,
|   From the thunder and the storm, and the cloud that took the form,
|   (When the rest of heaven was blue), of a demon in my view." 
|       {10010 | 0111}  ? Veritas Aut Nihil! ? Heads- heads... heads?  heads!
| 
|  Mike Erwin,       UNIX Systems Administrator       Apple Computer, Inc.
|  erwin#m#_mike.ast_-_tac_mail_server@msgate.corp.apple.com
|    Apple: 512-919-2223      TT: 512-345-3573
Newsgroups: comp.os.msdos.programmer
From: S103408@UMRVMB.umr.edu
Subject: 32 bit C++ compilers
Date: Sat, 9 Jan 1993 04:35:02 GMT
Organization: Univ of MO - Rolla

Well, I got kicked out of comp.lang.c++ so I'll ask here.

Has anybody out there used a non-gnu 32bit DOS compiler and
had success?  I have code that currently won't compile under
BC++3.1 because it has expressions > 64K (yes, I called tech
support and they said "you just maxed it out").  I also would
like to avoid Phar-Lapp's extender since they charge a fortune
for the ability to link in the necessary stuff to distribute
programs.  Please e-mail me your experiences (no gnu plugs please)
and if I get any responses I will summarize the results to this
newsgroup.

Thanks - John Ham
S103408@UMRVMB.UMR.EDU
From: Neal.Sanche@ttlg.UUCP (Neal Sanche)
Sender: postmaster@ttlg.UUCP
Newsgroups: comp.os.msdos.programmer
Subject: Bc++ Tvision Slow!!!
Date: 11 Jan 93  07:36:02 mst

It is NOT my imagination! Turbo Vision for C++ (BC++ v3.1) is 
extremely slow when compared directly with the Turbo Pascal 6.0 
version. Is there any way to speed up screen I/O? 
 
Please help me, there is no easy way to create the same program 
that I am writing in C++ using the BIDS library in Turbo Pascal. 
Translation would be futile, since the program works flawlessly 
now. The only problem is speed. 
 
-Neal 
 
... OFFLINE 1.41 

 * Origin: Paradigm BBS: A programmer's paradise. (42:100/11)
Newsgroups: comp.os.msdos.programmer
From: kestes@nswc-wo.nswc.navy.mil (Kent Estes)
Subject: floating point question
Organization: Naval Surface Warfare Center
Date: Tue, 12 Jan 1993 19:07:02 GMT

I have an unsigned number representing the mantissa of the number
I am creating.  The problem is what is a better way of making
the fraction part of a floating point number. 

The way I am currently doing this is looping through the bits
in the number and dividing the result if the bit is set.  My
intuition tells me (and intuitions have been known to lie)
there has got to be a better way than this...

tnx kl
From: rnelson@wsuaix.csc.wsu.edu (roger nelson;S23487)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Possible bug in Borlandc Turbo Vision 3.1
Date: 11 Jan 93 03:40:45 GMT
Article-I.D.: serval.1993Jan11.034045.14382
Organization: Washington State University

In article <1993Jan11.005522.27171@seas.gwu.edu> mikee@seas.gwu.edu (Mike Me) writes:
>This is a posible bug under Borland C 3.` Turbo Vision.
>
>If you swithc into any graphics mode, and afterwards try to use
>a Turbo Vision type of thing, the MOUSE cursor will NOT show up. It does work,
>but the cursor is NO-WHERE to be found.
>

This is what you have to do:

   suspend(); // mouse   Tvision function
   YOUR_GRAPHICS_FUNCTION();  <- Call init_graph and closegraph in here!
   resume();  // mouse  Tvision function
   active_application->setScreenMode(0x0003);  //smCO80;
   active_application->redraw();
   heapfillfree(0);

active_application is your application object instance.

Roger

_____________________________________________________________________
      ______________
____  | ^          |    Roger Nelson          rnelson@wsuaix.csc.wsu.edu
\^^ | | ^          |    Biological Systems Engineering Department
 |^^//  ^^         |
 |  '  ^          +|<---Washington State University
 \_  ^    _________|    Pullman, WA 99164-6120
   `-----'              Work: (509)335-4714  Home: (509)332-8387
                        FAX: (509)335-2722
From: tcobbs@zeus.calpoly.edu (Travis Cobbs)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Which TEXT mode FONT chars abut? (touch?)
Date: 6 Jan 93 08:11:29 GMT
Organization: California Polytechnic State University, San Luis Obispo

In article <C0CEJ7.102@news.cso.uiuc.edu> amead@s.psych.uiuc.edu (Alan Mead) writes:
>I redefined some text mode characters.  One is like ASCII 196 (a long
>"hyphen" that stretchs the length of the character cell) but is
>supposed to occupy only the bottom row of the definition (unlike 196
>which, roughly, lies on the middle row).
>
>But one of the end columns won't display--resulting in a dashed, instead
>of solid, line when I write a string of these.
>
>I dimly recall that only certain charcters can be defined as line
>characters, but I've tried redefining 184, 189, and 190 and none of
>them work.
>
>Thnaks for any help.
>
>-alan mead


One quick addendum, then (hopefully) an answer.  The dashed output only occurs
on a VGA.  The VGA has a 9x16 character size, while EGA has 8x14.  Since
you're using the bottom of the character, though, it probably won't be visible
at all on an EGA, so it's probably academic.

On a VGA, certain characters are special, as you surmised.  Those characters
have the following property:  if the 8th pixel is on, the ninth for that row
is also on.  The characters you can choose from are: 192-216, 218-220, and 223
(ASCII).  These are the line draw characters which go all the way to the right
hand side.  Sorry if I missed any.  By the way, if anyone knows of a way to
add to the list of these, please post.
+-----------------------------------+------------------------------------------+
|                      Travis Cobbs | When you have to kill a man, it costs    |
|           tcobbs@nike.calpoly.edu | nothing to be polite.                    |
|       tcobbs@morpheus.calpoly.edu |   --Winston Churchill, On formal         |
|    tcobbs@polyslo.csc.calpoly.edu |     declarations of war                  |
+-----------------------------------+------------------------------------------+
Newsgroups: comp.os.msdos.programmer
From: brown@NCoast.ORG (Stan Brown)
Subject: Re: vi clones for pc
Organization: Oak Road Systems, Cleveland Ohio USA
Date: Thu, 7 Jan 1993 15:24:41 GMT

In article <1993Jan6.150753.24075@news.acns.nwu.edu> scottb@casbah.acns.nwu.edu (Scott Buchholz) writes:
>
>Any suggestions?

Get Elvis. It's available at many sites, e.g. Simtel:
  PD1:<MSDOS.EDITOR>ELV16EXE.ZIP and ELV16SRC.ZIP

Also see Samuel Ko's "List of useful MS-DOS programs" (approximate
title, from memory) on comp.archives.msdos.d.
-- 
Stan Brown, Oak Road Systems                      brown@Ncoast.ORG
Cleveland, Ohio, USA
From: eoq@vthnw.cvm.msu.edu (Edward Quillen)
Newsgroups: comp.os.msdos.programmer
Subject: Getting DOS environment size
Date: 12 Jan 93 19:38:25 GMT
Organization: Veterinary Teaching Hospital, Michigan State Univ.
NNTP-Posting-Host: cgpc0008.cvm.msu.edu

Is there some way to get the size of total bytes allocated for the
DOS environments.
In config.sys
  shell=command.com /e:512 /p

Where is the number 512 stored??
Thanks for your time!!

+++++++++++++++++++++++++++++++++++++++++++++++++
+++ ED (Edward Quillen)   (517) 336-1293      +++
+++ Vet Teaching Hosp.    System Admin.       +++
+++ Email: quillen@cps.msu.edu                +++
+++++++++++++++++++++++++++++++++++++++++++++++++
Newsgroups: comp.os.msdos.programmer
From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
Subject: Re: question on spawning DOS from C prog
Organization: Monash University, Melb., Australia.
Date: Sat, 9 Jan 1993 10:32:07 GMT

jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO) writes:

>In article <tim.36.726368023@tim.src.utah.edu>, tim@tim.src.utah.edu (Tim Ma) wr
>ites:

>Hi, I am the original poster of this problem: this is especially to
>Tim and Wolfgang. I tried the code below (which is I think what both
>of you guys are suggesting) but it does'nt work (the new prompt
>string is ignored). Any ideas?     - John.

I am neither Tim nor Wolfgang, but the following *does* work!

#include <process.h>
#include <stdlib.h>
#include <stdio.h>

int shell(char *);

void main(void)
{
   static char *message = "PROMPT=Type EXIT to return to program $_$P$G ";

   if (shell(message) == -1) {
      fprintf(stderr, "Error: cannot shell to DOS\n");
   }
}

/***
 * function: shell
 * purpose:  shell out to DOS operating system.
 * passed:   prompt -- prompt to be displayed in DOS environment.
 * returns:  -1 -- error occured
 *            ? -- the child process's exit status
 ***/
int shell(char *prompt)
{
   char *comspec = getenv("COMSPEC");

   if (!comspec) {
      return -1;
   }
   if (putenv(prompt)) {
      return -1;
   }
   return spawnl(P_WAIT, comspec, NULL);
}

Lee Hollingworth
s1110238@giaeb.cc.monash.edu.au
From: cfortier@genghis.news (Chris Fortier)
Subject: Re: question on spawning DOS from C prog
Organization: Borland International, Inc.
Date: Fri, 8 Jan 1993 00:59:41 GMT



In article <1993Jan7.140524.15787@ns1.cc.lehigh.edu> jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO) writes:

[ STUFF DELETED ]

   Hi, I am the original poster of this problem: this is especially to
   Tim and Wolfgang. I tried the code below (which is I think what both
   of you guys are suggesting) but it does'nt work (the new prompt
   string is ignored). Any ideas?     - John.

   #include <stdio.h>
   #include <process.h>
   #include <dos.h>
   #include <stdlib.h>

   int main( int argc, char *argv[], char **envp )
   {

   printf( "\ninside main, spawning DOS\n" );
   sleep( 2 );

   putenv( "prompt=$_type EXIT to return to program $_$_$p$g" );

   spawnlpe( P_WAIT, "command.com", NULL, envp );

   printf( "\nback from spawn!\n" );

   sleep( 2 );

   }



Sigh.  Please RTFM.  The third parameter to spawn???() is argv[], a list of
parameters to the spawned executable.  This means that argv[0] must be the
name of the executable.  I know this seems redundant, but it does have a
purpose (changing path information, passing info to the child program, etc.).

Change the spawn???() command to the following, and the program should work:

	spawnlpe(P_WAIT, "command.com", "command.com", NULL, envp);
                                ^              ^              
                                |              |        
                               path         argv[0]     


Chris Fortier
Borland C++ Run Time Library QA

cfortier@borland.com
From: mbc@po.CWRU.Edu (Michael B. Comet)
Newsgroups: comp.os.msdos.programmer
Subject: Help!  Microsoft QuickC for Windows + BITMAPS problem!?
Date: 4 Jan 1993 17:29:08 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: mbc@po.CWRU.Edu (Michael B. Comet)
NNTP-Posting-Host: slc12.ins.cwru.edu



	I have recently been working on a graphics viewer in microsoft
quickc for windows.  No major problems as I have written one for DOS
allready.  

	To speed up the drawing and updating of the windows, I am using
the CreateBitmapIndirect() function and the StrechBlt() function to
display the bitmaps.  I have ran into a problem though where bitmaps say
640x480 have weird horizontal shifts though starting about 100 lines in
and every 100 lines or so.  Does anyone know of a problem with the
standard bitmap format for files bigger than 64k?  The program looks
fine for 320x200 images.  Also, I have tested my decompression by put
code to view what's decompressed as it decodes an image line by line
using the SetPixel() function.

	Any help would be appreciated.  Is there a better way to display
a bitmap?  I am used to using a direct ptr to the screen in DOS, but I
don't think that's going to work in windows....plus I don't want to have
to worry about which SVGA card is in use etc...

	Thanks.

 
-- 
+======================================================================+
|  Michael B. Comet - Computer Programmer / Graphics Artist  - CWRU    |
|  mbc@po.CWRU.Edu  - "IF THEN THEN THEN = ELSE ELSE ELSE = THEN"      |
+======================================================================+
Newsgroups: comp.os.msdos.programmer
Subject: Need Shareware MASM Assembler !
From: vxc15931@vax1.mankato.msus.edu
Date: 6 Jan 93 10:35:12 -0600
Organization: Mankato State University

Hi!

I am looking for a shareware version of a MASM 3.0 (or better) assembler.  Can
any one recommend me one one or direct me to the proper pe?  I need it for an
assembly language class and I plan to do my homework at home (where there is
beer) instead of doing it at school (where there is no beer and plenty of
people whom I don't want to see).  E-Mail response preferred.

Thanks in advance.

==================

Jose' R.C. Cruz
Graduate Assistant
Department of Physics, Engineering and Technology
Mankato State University
Mankato, MN 56001

==================

In the beginning, the Universe was created.  This made a lot of people angry,
and is considered to be a very bad move.

            ----- D. Addams, "The Restaurant at the End of the Universe"

Newsgroups: comp.os.msdos.programmer