HDTenEightyP/NetNews huggingface dataset:
From: chugh@niktow.canisius.edu (Kevin Chugh)
Newsgroups: comp.os.msdos.programmer
Subject: Re: tvision question
Summary: answers... i think
Date: 6 Jan 93 16:00:28 GMT
Organization: Canisius College, Buffalo NY. 14208

In article <2B48F420.8547@ics.uci.edu>, shi@ics.uci.edu (Edmond C. Shi) writes:
> ...just started to work with turbovision about a month ago
>    and ran into some questions i was hoping somebody could help
>    out on.
> 
>      1)  when i run the tvision demo programs and access the
>          help menu, i get an "assertion" error after closing
>          the window.  it seems like the program is deleting
>          an object when it shouldn't -- specifically, it seems
>          to be occurring when deleting the help topic object?
>          any body have an idea how i might resolve this problem
>          since i am using some of it for my own code.
>      2)  using the scrolling bar, is there a way i can modify it
>          so that the window scrolls when the cursor is on the
>          bottom line rather than the top line?
> 
> thanks,
>      ed

the first problem is a known memory leak in tvision versions below 1.03-
i believe borlandc has a patch for it- i may have it- if you have bc 3.1
the problem should be fixed- if you want the patch, i can try to mail it
to you directly- send me mail- 

for the second problem- i'm going to give a crack at answering- i know that
conceptually i am right because this is what you do for all tv modifications-
the specifics i'm pretty sure of -

what you want to do is create a class tMyScrollbar(or whatever) public 
tScrollBar;

then override it's event handler (i'll give you pseudocode because i don't
know the specifics of scrollbar)

tMyScrollBar::handleEvent(TEvent& event)
{
if position==1 and event.message.keydown==thedownarrowkey then scroll down 1;
//consult tkeys.h in /tvision/include for the down arrow key, also, check
out /tvision/source/tscrolle.cpp - this will give you the event handler 
and the functions which actually do the scrolling, and the function which
gives you the position

if you're unfamiliar with the event handler let me know and i'll give a 
more detailed explanation- 

this should be enough to get you started- if not, let me know-  
C
hope this helps.


kevin
A
C
then override it's event handl
From: corteenc@kirk.msoe.edu
Newsgroups: comp.os.msdos.programmer
Subject: More Cereal Questions :-)
Date: 9 Jan 93 21:53:20 CDT
Distribution: usa
Organization: Milwaukee School Of Engineering, Milwaukee, WI USA

Hello again,

I was reading through the questions/answer postings about the serial
communications code that was being discussed, and I was wondering if anyone out
there had some actual code that I could take a look at.  I am in need of a
piece of code that will install an interrupt vector to buffer a character each
time one comes in.

I have little knowledge of hardware interfacing and would appreciate any help
or sample code on this subject.

Thanks alot!!

Chris.

E-mail: corteenc@kirk.msoe.edu
Newsgroups: comp.os.msdos.programmer
From: tsullivan@trentu.ca (The OTHER One True God)
Subject: Re: Turbo Vision is too fat!
News-Software: VAX/VMS VNEWS 1.41    
Organization: Trent Computing and Telecommunications Department
Date: Mon, 11 Jan 1993 10:01:00 GMT

In article <1993Jan11.085826.27274@dec8.ncku.edu.tw>, msc@snoopy.ncku.edu.tw (Mac Su-Cheong (MSC)) writes...
>  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.

   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.

   Tim Sullivan
   tsullivan@trentu.ca
   cstes@blaze.trentu.ca

Disclaim THIS, buddy!
---
I looked over Jordan, what did I see?
Saw a US Marine in a pile of debris.
          - Roger Waters, Amused to Death

Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc,comp.os.os2.misc
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: DISABLING  CTRL-C  in BAT FILES...
Organization: University of Vaasa, Finland
Date: Thu, 7 Jan 1993 07:02:28 GMT

In article <1i9uq6INNgj5@usenet.INS.CWRU.Edu> dab6@po.CWRU.Edu (Douglas A. Bell) writes:
>In a previous article, ummalik@ccu.umanitoba.ca (Ijaz Rashid Malik) says:
>>Does anyone know of ANY way that would disable Ctrl-C &/or Ctrl-Break in
>>a BAT file. I have to shell to dos from a database app. (Paradox) to run

>I have seen memory resident programs which disable the control key or
>you can do something with piping the tty output to null, but I can't remember

garbo.uwasa.fi:/pc/ts/tstsr15.zip Terminate Stay Resident, T.Salmi
Filename        Comment                             Date      Time
--------        --------------------------------    ----      ----
DISABLE.EXE     Disable any single standard key   01-05-93  14:34:26
:
----            ------             ------  -----
0015

In batch programming, one can disable the entire keyboard with ctty
commands, but that is hardly of use in this case. 

..................................................................
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: cyberman@exucom.com (Stephen R. Phillips)
Newsgroups: comp.os.msdos.programmer
Subject: Re: question on spawning DOS from C prog
Date: 9 Jan 93 17:22:57 GMT
Organization: ExuCom Multimedia Inc.
X-Newsreader: TIN [version 1.1 PL8]

Adam Kerrison (adam@micromuse.co.uk) wrote:

: I dont think so. You can do this by setting the prompt correctly. I don't think
: you can have a newline in a prompt so you would need lots of spaces (a bit wasteful
: but such is DOS :-) ). Try something like this:

Eh this is untrue here is a breif summary of 3.2's available prompt escape
sequences.
$t - time	$d - date	$p - working dir	$v - version
$n - drive	$g - '>'	$l - '<'		$b - '|'
$_ - newline	$s - space	$e - 0x1b

:')
Cyberman
-- 
This is my sig file!
Read rec.games.programer!
Xref: sparky comp.os.msdos.programmer:11933 comp.os.msdos.misc:6921
From: kraai4712@iscsvax.uni.edu
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
Subject: Re: Redirecting output from a batch file.
Date: 8 Jan 93 16:37:29 -0600
Organization: University of Northern Iowa

In article <1993Jan8.124018.22988@ucl.ac.uk>, uclyjjd@ucl.ac.uk (Julian Daley) writes:
> Here's an easy one .....
> 
> How do I redirect standard output from a .BAT file ?

Get a copy of Ziff-Davis' BAT2EXEC.COM and use it to compile your batch file
into an executable.

Then you can run the compiled batch file and redirect any standard output just
as you would any other executable.

--jim
Newsgroups: comp.os.msdos.programmer
From: bonak@herky.cs.uiowa.edu (Esmail Bonakdarian)
Subject: How to get real memory size
Date: Fri, 8 Jan 1993 22:31:09 GMT
Reply-To: bonak@herky.cs.uiowa.edu (Esmail Bonakdarian)
Organization: U of Iowa, Iowa City, IA

I am trying to write my own sysinfo utility, and I am having difficulty
determining the physical amount of memory present. I can use biosequip()
to get the amount of base memory (and number of serial and parallel ports,
whether the mathco is present or not), but I am not able to determine the
amount of extended memory when I have QEMM installed.

Is there a way to determine the total amount of physical memory (i.e., 4MB, 8MB
etc) installed on the system regardless of the memory manager and whether the 
memory is configured to be used as expanded or extended?

Also, while I'm asking, where is the BIOS manufacturer signature located?
I am able to get the BIOS date, but not id the maker (e.g. AMI, Phoenix, etc).

Esmail

PS: I'm using TC++ v1.01 with MS-DOS 5.0
----------------------------------------
#include <stdio.h>
#include <dos.h>

void main(void)
{ int ext_mem_size = 0;
  union REGS regs;

  regs.h.ah = 0x88;

  int86(0x15, &regs, &regs);
  ext_mem_size = regs.x.ax;

  printf("    Extended memory          : %d K-bytes\n", ext_mem_size);
}
Newsgroups: comp.os.msdos.programmer
From: brown@NCoast.ORG (Stan Brown)
Subject: Re: comp.os.msdos.programmer FAQ part 4 of 4
Organization: Oak Road Systems, Cleveland Ohio USA
Date: Thu, 7 Jan 1993 16:08:12 GMT

In article <msdos-faq.930106.4@NCoast.ORG> brown@NCoast.ORG (Stan Brown) writes:
>Archive-name: msdos-programmer-faq/part4
>Last-modified: 1993 Jan 6

>QB03. What's the current version of PKZIP?
>

The latest version is 2.04c, and is available (according to articles in
comp.archives.msdos.d) from PKWare's bulletin board at 
                +1 414 354-8670

It is at Garbo but not at Simtel, owing to U.S. export restrictions (so
don't yell at the archive-site administrators).

Here's part of the announcement from comp.archives.msdos.d:

>Some reports have come in the certain version of Norton Anti-Virus
>are reporting PKZIP 2.04 to have the Maltese Amoeba virus.
>
>THESE REPORTS ARE FALSE! If the version of Norton is upgraded to
>a newer version the false reports cease.
>
>The correct files size,date and time should be:
>
>PKZ204C.EXE     188818  12-28-92        2:04
>                SIZE    DATE            TIME
>
>If you have any further questions, please feel free to contact
>me here at pkware.inc@mixcom.com
>
>Mark Gresbach
>PKWARE, Inc.

-- 
Stan Brown, Oak Road Systems                      brown@Ncoast.ORG
Cleveland, Ohio, USA
Newsgroups: comp.os.msdos.programmer
From: suwanto@iastate.edu (zapper)
Subject: How to redirect the standard output error to a file
Organization: Iowa State University, Ames IA
Date: Sun, 10 Jan 1993 09:01:48 GMT

I'm having problem redirecting the error messages generated by some 
programs to a file. For example, if file A does not exist:
C> COPY A B > D
File not found - A
C>

and the content of file D is empty.
what i want is such that D contains File not found - A
and no error messages shown.

Any help will be appreciated.
Thanks in advance!

suwanto@iastate.edu

-- 
Newsgroups: comp.os.msdos.programmer
From: popineau@tintin.ese-metz.fr (Fabrice Popineau)
Subject: Int 08, smartdrv, com?:
Organization: Supelec, Etablissement de Metz, France.
Date: Fri, 8 Jan 1993 14:23:55 GMT
X-Posted-From: tintin.ese-metz.fr
NNTP-Posting-Host: sol.ctr.columbia.edu


Hi netters,

I need to do high speed transfers over a serial port (115kbs). But
when Smartdrv.sys (TM) is loaded, it gets Int08 to reorganize his
memory, it takes time and I lose bytes.

What is Int08 ? I didn't find any documentation. Is there any
drawbacks in masking it ?

Thanks for any help,

F. POPINEAU



--
e-mail: popineau@loria.loria.fr	      
        popineau@ese-metz.fr                 
voice-mail: (+33) 87-74-99-38                
surface-mail: 	Ecole Superieure d'Electricite
	      	2 rue Edouard Belin           
		F-57078 Metz Cedex 3	      
		FRANCE			      

Newsgroups: comp.os.msdos.programmer
From: pynq@quads.uchicago.edu (Jeremy Mathers)
Subject: Re: LOADFIX and low-memory EXE loading
Reply-To: pynq@midway.uchicago.edu
Organization: D. J. Dougherty & Associates
Date: Mon, 11 Jan 1993 18:52:14 GMT

In article <C0ozzJ.DJA@csugrad.cs.vt.edu> jjarrett@csugrad.cs.vt.edu (James Jarrett) writes:
...
>Next, how can I write a program so it doesn't need LOADFIX?  For my current
>project, it doesn't matter, since I only have 1 user, and she has DOS 5.0.
>My next project, however, is supposed to run on almost any machine.  I 
>cannot require LOADFIX, and I would like to be able to circumvent the 
>problem inside my program. 

It was my understanding that this problem only manifests if you use
EXEPACK on your (I.e., the developer's) executable file.  So, if you are
the developer, the easy solution is, "DON'T USE EXEPACK".

************************************************************************
Lackland's Laws:
	1.  Never be first.
	2.  Never be last.
	3.  Never volunteer for anything

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
From: rol@grasp1.univ-lyon1.fr (Paul Rolland)
Newsgroups: comp.os.msdos.programmer
Subject: Fortran Grammar...
Date: 8 Jan 93 17:00:03 GMT
Followup-To: comp.os.msdos.programmer
Organization: Apple Computer Europe

Do you know of a document that presents the grammar of the Fortran
language ? I have the compiler, but no documentation, and I don't know
what to do...

Paul Rolland

A bug can be changed to a feature by documenting it. Developpers know !
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer,rec.games.programmer
From: daniel@mksol.dseg.ti.com (daniel lemon)
Subject: Re: Need help with Phar Lap DOS Extender and assembly
Organization: Texas Instruments, Inc
Date: Mon, 4 Jan 1993 15:32:50 GMT

In article <3JAN199313402308@zeus.tamu.edu> s0r1282@zeus.tamu.edu (RAVET, STEVEN) writes:
>The real reason I am posting is to recommend a different compiler, GCC from
>the Free Software Foundation.  It comes with a dos extender that supports
>VCPI, ie QEMM, DesqView, etc.  It is bundled with a debugger, assembler,
>profiler, etc.

Correct me if I'm wrong, but isn't that debugger a little primitive?
I tried out this package, and the debugger wasn't much better than the
DOS DEBUG.EXE command.  It had no support for source-level debugging.
(If it actually will do source-level debugging, please tell me; I need
to know.  We'd be using it if it did.)
Newsgroups: comp.os.msdos.programmer
From: hmiller@osiris.cso.uiuc.edu (Harry Miller)
Subject: Re: BC++ TV Stream Manager..
Organization: University of Illinois at Urbana
Date: Mon, 11 Jan 1993 18:11:18 GMT

Neal.Sanche@ttlg.UUCP (Neal Sanche) writes:

>I would like to know why the BC++ Turbo Vision stream manager causes 
>memory losses every time I instantiate a TResourceFile object and then 
>immediately destroy it? 
> 
>Is there something that the TV Stream manager does behind the scenes 
>that cause it to reserve memory for itself and then not deallocate 
>it? 
> 
>Any insight would be appreciated. I'd like to know how the stream manager 
>works to be assured that I'm not going to eventually run out of heap 
>memory whenever objects are read from and written to streams. 
> 
>-Neal 
> 

Make sure the allocation routine is not reserving the memory for future use.
Many allocation schemes do this to improve performance. The functions
coreleft and farcoreleft, will not report this saved memory, you need to
use the heap functions to find this saved memory. I've never done this
myself, but I have seen some code to do this.

Another consideration:
Is the instantiation (sp?) of your TResourceFile class the very first
instantiation (there's that word again). If it is, your memory loss may
be from the stream manager's initialization of your streamable class.
I do not think the ste stream manager releases this memory, in case it
might be needed later on.

Well, a few thought to look at (how do you see thoughts!).

Harry E. Miller ----------------- just a jerk lurking on the net
hmiller@osiris.cso.uiuc.edu ----- where to send the hate mail

Newsgroups: comp.os.msdos.programmer
From: jzawodn@andy.bgsu.edu (jeremy zawodny)
Subject: Re: Suggestions wanted: A good programmers editor!
Organization: Bowling Green State Univ.
Date: Sun, 10 Jan 1993 06:37:38 GMT

On Thursday January 07 1993, Fraser Street wrote to All:

FS> I am interested in your recommendations from the net of a good
FS> programmers editor for MS-DOS (386+) class machines.  Specifically I

 [stuff deleted...]

Have you looked at Bingo?  It's my personal favorite and satisfys most all
of the questions you asked.  It's available via anonymous FTP from most
msdos sites... I believe the current filename is: BE300.ZIP

Jeremy

-- 
Jeremy Zawodny, Computer Nerd (student) @ Bowling Green State University

jzawodn@andy.bgsu.edu
From: rnelson@wsuaix.csc.wsu.edu (roger nelson;S23487)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Turbo Vision is too fat!
Date: 11 Jan 93 17:13:56 GMT
Article-I.D.: serval.1993Jan11.171356.19851
Organization: Washington State University


One of the things I can live without are the TVision object streams.
I comment out the variable and function declarations related to streams
(in the TVision sources) which are not used by TVision itself with 
#ifdef TVSTREAMS.
So far I have only done this with a few of the object classes, such
as buttons, text inputs, checkboxes, radiobuttons; but haven't had any
problems.  
Note, however, you're application can't save it's desktop environment
or do other object stream related stuff.

Roger
From: joes@adpgate.UUCP (Joe Biehner)
Newsgroups: comp.os.msdos.programmer
Subject: defining a timer interrupt function question
Date: 6 Jan 93 17:32:29 GMT
Organization: ADP Dealer Services R&D, Portland, OR

I was wondering if anybody has had any experience implementing timer interrupt
functions using Borland C++ 5.0/5.1?  Recently I attempted to implement one
for a project and was unsuccessful; Borland Tech Support wasn't much help.

What I was able to do was implement the example timer interrupt in the book,
but that wasn't my exact implementation.  The normal stuff worked fine - I 
could save the old interrupt address to a variable and set mine, but when mine
ran, the machine seemed to hang.

Certain things I have learned - you can't use 'printf' from an interrupt
function (it messes up the screen).  Is there anything else that CAN'T be done?
(e.g., if you can't call a function from the interrupt function, where the
called function is part of the main program, etc.)

Also, any tips for debugging such a function would be extremely appreciated,
since 'printf' is NOT an option.

If I've left out any significant details, please let me know.  I'd really like
to understand how to solve this.  By the way, probably the best way to respond
is via the net; I'm not sure that my account is fully equipped to receive
e-mail.

Thanks 10^6 in advance.



Joseph Tokarski, Software Engineer
ADP Dealer Services
1950 Hassell Rd.
Hoffman Estates, IL  60195
(708) 397-1700
From: Neal.Sanche@ttlg.UUCP (Neal Sanche)
Sender: postmaster@ttlg.UUCP
Newsgroups: comp.os.msdos.programmer
Subject: BC++ TV Stream Manager..
Date: 05 Jan 93  15:57:00 mst

I would like to know why the BC++ Turbo Vision stream manager causes 
memory losses every time I instantiate a TResourceFile object and then 
immediately destroy it? 
 
Is there something that the TV Stream manager does behind the scenes 
that cause it to reserve memory for itself and then not deallocate 
it? 
 
Any insight would be appreciated. I'd like to know how the stream manager 
works to be assured that I'm not going to eventually run out of heap 
memory whenever objects are read from and written to streams. 
 
-Neal 
 
 
 
... OFFLINE 1.41 * Live from New York... 

 * Origin: Paradigm BBS: A programmer's paradise. (42:100/11)
Newsgroups: comp.os.msdos.programmer
From: ghica@fig.citib.com (Renato Ghica)
Subject: borland C++ and DLLs
Originator: ghica@duck
Organization: Citibank IBISM
Date: Wed, 6 Jan 1993 21:07:53 GMT



sorry, if this is  improper for this newsgroup, but I can't think
straight anymore. Also sorry if this is an FAQ.


DOS 5.0, WIN 3.1, BCC 3.1
I'm getting very confused about how to use DLLs in a window program.
I had it working once, but my brain is just about fried now.

I'm trying to compile and link a Windows program, with external routines and 
classes using a "shared  library", outside of the IDE.


1) I compile/link all classes (defined with _export) with the -WDE flag.
   A libmain procedure is included in the compile and link. This gives me
   a DLL. ie

	bcc -c -P -ml -WDE -lc -lC -ls -D__cplusplus libmain.c module1.c module2.c
	bcc -ml -WDE -lc -lC -ls libmain.obj module1.obj module2.obj

	RESULT : libmain.dll

2) impdef tells me that the class methods are actuall in there, so I run rc
    and then implib so as to create a .lib

	impdef foo.def libmain.dll
	type foo.def (ok)
	rc libmain.dll
	implib myMods.lib libmain.dll

3) I compile a main.c program which uses classes and functions defined
in module1.c and module2.c

	bcc -W -P -lc -lC -ls -D__cplusplus main.c myMods.lib


	RESULT: every reference to classes/functions in mymods.lib is UNDEFINED.

-----------------------------------------------------
Does anyone know how to do this outside of the IDE? Ie getting it work?????


Thanks
-- 

"delete *this"

"These views are my own. / Mail me or Flame me"
From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Math experts! Need 3D rotation equation
Date: 5 Jan 93 20:31:45 GMT
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada

In article <quan.726211707@sol> quan@sol.surv.utas.edu.au (Stephen Quan) writes:
>paul@ramsey.cs.laurentian.ca (Paul Lalonde) writes:
>
>>I'm working on a small 3D graphics program that takes vector images
>>and rotates them about the XY axes.
>
>There are 3 kinds of rotations in 3D :
>
>x-axis rotation :
>y' = y*cos(angle) - z*sin(angle)
>z' = y*sin(angle) + z*cos(angle)
>
>y-axis rotation :
>z' = z*cos(angle) - x*cos(angle)
>x' = z*sin(angle) + x*cos(angle)
>
>z-axis rotation :
>x' = x*cos(angle) - y*sin(angle)
>y' = x*sin(angle) + y*cos(angle)
>
>There is, of course, the more effective matrix representations of the
>above, but I didn't think Paul wanted to be bamboozled with all the
>matrix-algebra jargon.  Any good computer graphics would describe the
>3D theory rotation well.
>--
>Stephen Quan (quan@sol.surv.utas.edu.au)      Tel : 002 202844 (local)
>Research Fellow, Computer Scientist,          Fax : 002 240282 (local)
>Centre for Spatial Information Systems,       Tel : 61 02 202844
>University of Tasmania, Australia.            Fax : 61 02 240282

I don't remember the title, but there is a book including also
3D formulas with perspective, that is they are using 4 variables
instead of 3.  If you plan to develop something potentially more
powerful (like drawing boxes with perspective), you should explore
this now since it will be easier to develop now 3D-P programs than
to right some 3D programs and convert them later to 3D-P.  3D-P is
not the official name.

-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Ge'ne'alogiste des familles : Beauregard/Jarret/Jarest/Vincent
J   __>  Un Que'bec renouvele' dans une Ame'rique renove'e
\_.-===  Ope'rateur de "Racines du Que'bec" (514) 922-9636 BBS/Genealogie