HDTenEightyP/NetNews huggingface dataset:
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: Nice curve fitting code... 
Organization: University of Vaasa, Finland
Date: Mon, 14 Dec 1992 18:43:27 GMT

In article <724236251snx@babel.DIALix.oz.au> del@babel.DIALix.oz.au (D Elson) writes:
>  > Garbo.  See
>  >   11380 Sep 20 08:35 garbo.uwasa.fi:/pc/UPLOAD.INF
>  >    4690 Oct 19 09:49 garbo.uwasa.fi:/pc/UPTEXT.INF
>  > for that option.

>As a person who has indeed been inundated with requests for a piece of
>code that I offered to upload, I would suggest posting or uploading
                                                ^^^^^^^
But be careful never to post binaries to comp.lang.pascal directly
as it is a discussion newsgroup.

>to garbo.  However, since I don't actually have ftp access myself, I
>ended up posting my code.  Fortunately some nice soul uploaded it to
>garbo for me after I posted it (as deltsr.zip, a week or so ago).

You can upload to Garbo even if you don't have FTP.  The
instructions are in the files referred to in the above.  You can
order those files using our mail server even if you do not have FTP.

>Timo, is there any way we can upload to garbo my e-mail?  I use a
>ftp-by-mail server which allows me to download by sending it
>commands in a mail message, but I can't use it to upload code.

You can do it by uuencoded email to me.  But first see the
instructions I referred to.

Here is how to get files from Garbo in general:

"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". 

   All the best, Timo

..................................................................
Prof. Timo Salmi
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: mikesch@matt.ksu.ksu.edu (Michael Schulz)
Newsgroups: comp.lang.pascal
Subject: Saving graphics output
Date: 13 Dec 1992 18:29:58 -0600
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu
Summary: How do you save graphics output to a viewable file?

Does anyone know how to save graphics output to a standard viewable file (i.e. .gif, .bmp) using tp6?  If you do could you please either send me the code, or direct me to an ftp site.  Theanks.
-- 
Tide after tide	- Will flow and recede			Mike Schulz
Leaving life to go on - As it was . . .			Mikesch@phys.ksu.edu
- Neil Peart 'Natural Science'				Mikesch@ksu.ksu.edu
Newsgroups: comp.lang.pascal
From: jke@tko.vtt.fi (Kemppainen Jukka)
Subject: Wanted: TP/BP code for spline or bezier
Keywords: bezier spline curve fit
Organization: University of Oulu
Date: Mon, 14 Dec 1992 11:10:21 GMT

I would like to receive TP/BP code (or pointers to correct ftp
machines) for spline or bezier curves:
- I would like to convert any polyline to a smooth version of it

I have bought Turbo Graphics Toolbox a couple of years ago and 
it contains one version of spline and bezier curves, but they
are suitable for creating smooth version of measument data
(the x-coordinates of control points list must be an increasing order:
 (0.1;...) (0.2;...) ... (1.0;....)  )
-> I can NOT use them if control points are for example points of
  hand draw curve (= x-coordinates of the control point list can be
  in any order)

Greetings,

Jukka Kemppainen
jke@tko.vtt.fi
From: sjmadsen@apsvax.aps.muohio.edu (Steve Madsen)
Newsgroups: comp.lang.pascal
Subject: Re: Com Port Losing Characters
Date: 18 Dec 92 14:59:46 GMT
X-Newsreader: TIN [version 1.1 PL6]


	Well, given your explanation of the problem, there is very
little you can do to fix it, except take out the packet driver.  The
reason is that the packet driver has hooked an interrupt that it more
important than the comport (most likely the timer interrupt).  As long
as it is hooking the interrupt "more important" than your com interrupt,
your com interrupt will *never* be called.  That's a hardware problem,
so it can't be fixed in software.

	This really should never happen -- it just shows rather poor
interrupt routine programming.  Whoever wrote that packet driver (if
that is your only problem :) ) needs to re-think their algorithm!

	Try removing the driver and see what happens, if it's possible.
Newsgroups: comp.lang.pascal
Subject: re: my PD editor fights back / TP prot scheme
From: paulg@a1.resmel.bhp.com.au (Paul Gallagher)
Date: 15 Dec 92 08:40:49 +1000

In article <34646@adm.brl.mil> ATURNER@rcnvms.rcn.mass.edu (Alan Turner) writes:
>Date sent: 14-DEC-1992 
>
>The program knew that I modified one byte! and gave me an error message
>accordingly! "Program has been altered" and blew up!
>
>This is my question because now I am curious - does anyone know of TP prot
>schemes along these lines or is this a strictly assembly thing?
>How can a program do this!!!????
>

Easily done in any language really... just need to read your .EXE
like a data file and calculate a metric of some sort based on
the contents (eg: CRC value). Not complete protection against
hacking, but will warn a user of your program if a virus has got
into your EXE, or if its just plain corrupted.

btw, I think the F-PROT virus protection package (in an older
version perhaps) included a utility to "retro-fit" such an integrity
onto any executable. Also, I seem to remember that the Turbo User
Group has got some Pascal source in its code library that does 
an integrity check for you.

Regards,
PaulG
----------------------------------------------------------------
   /\/\     :  Paul Gallagher, PC/Mac Support
  / / /\    :  Computer Services Group
 / / /  \   :  BHP Research - Melbourne Laboratories
/ / / /\ \  :  245 Wellington Rd, Mulgrave, 3170, AUSTRALIA
\ \/ / / /  :  Phone    +61-3-560-7066
 \  / / /   :  E-mail   paulg@a1.resmel.bhp.com.au
  \/\/\/    :
================================================================
All I (not my company) want for Christmas is ... OS/2 v2.0 
support in Lan Manager 2.2 ... and LanMan 2.2 support in DEC
Pathworks ... and MacTCP free with all my new Macs ... and ...
----------------------------------------------------------------
Newsgroups: comp.lang.pascal
From: andres@scf16.scf.loral.com (Jeff Andres)
Subject: Borland API Books; quality ???
Organization: Loral Space & Range Systems
Date: Fri, 18 Dec 1992 18:16:53 GMT

Hey...

For those of you who bought BP7 and purchased the API books from
Borland for the additional 29.95, were they worth it ???

-- 

         _/  _/_/_/_/   _/_/_/_/ _/_/_/_/     Jeff Andres
        _/  _/         _/      _/        ---  Loral Space and Range Systems
       _/  _/_/_/     _/_/    _/_/       ---  1260 Crossman Ave.  MS-S37
From: del@babel.DIALix.oz.au (D Elson)
Newsgroups: comp.lang.pascal
Subject: Anyone useing BPE (paradox engine ??? 
Distribution: world
Date: Sun, 13 Dec 92 08:48:24 GMT
Organization: 


In article <1gbnbmINNokq@lester.appstate.edu> jvs@lester.appstate.edu writes:

  >         hi folks,
  > 
  >         I'm thinking about purchasing BPE and dbase Frameworks,
  >         is anyone using it?  Y'know the pascal routines to manipulate
  >         dbase, or paradox  tables??
  > 
  >         I'm interested in using this package to read dbase files,
  >         then possibly use the ObjectWindows Frameworks to display
  >         the records in windows3.x
  > 
  >         thanks alot - sincerely   j.v.scalco

Where do you get this code?  If anyone else has any opinions on it,
then I'd be interested too.

Del
-----------------------------------+-------------------------------------
D Elson                            |  del@DIALix.oz.au del@adied.oz.au
-----------------------------------+-------------------------------------
From: rind@binoc.bih.harvard.edu (David Rind)
Newsgroups: comp.lang.pascal
Subject: Re: Stopping Control-C...  I though I was...
Date: 14 Dec 92 20:35:37 GMT
Organization: Beth Israel Hospital, Harvard Medical School, Boston Mass., USA

In article <1992Dec13.093306.7988@crash> tech@crash.cts.com
 (Don Bontemps) writes:
>I wrote an application program that I did not want the user to be able
>to exit via pressing <control-C>.  I included the "setcbreak := true"
>line to my source code.  This stops <control-C> but does not stop
><control-break> (ie: the break on the pause key).  Can someone tell me
>how to prevent <control-break> from doing this?   Thanks.....!

I'm not certain whether the problem here is that you are in the IDE
(where control-break works even if you set breaking off, since
you need to be able to break out to the IDE) or whether you are
having problems with the pause key itself.

This latter question just came up a few weeks ago, and I mailed 
out this code fragment to several interested people.  Since it 
may have come up again, I figured I'd post it.

The problem is that the pause key actually pauses the computer
via hardware.  To reset the pause, you can use the timer interrupt
to generate a reset process at every tick.  The method here
was taken from some computer magazine.


Program TrapPause;
Uses Dos;
Var
  Timerint : Pointer;
  PauseFlag : Boolean;

procedure PauseDetect(flags,CS,IP,AX,BX,CX,DX,SI,DI,DS,ES,BP: word);
  {This latches on to the system timer interrupt to detect if the
   pause key has been pressed, and if so to reset the system to allow
   operation to continue and to set Pauseflag = True}
  interrupt;
  begin
    If memw[$0:$418] and 8 = 8 then  {Test bit 3}
    Begin
      Pauseflag := True;
      memw[$0:$418] := memw[$0:$418] and $F7; {Set bit 3 = 0}
    End;
    inline($9C/              {PushF}
           $3E/              {DS}
           $FF/$1E/timerint);{Far call to usual timer interrupt}
  end;


Begin
  Getintvec($08,Timerint);      {Save old interrupt for timer}
  Setintvec($08,@PauseDetect);  {Redirect timer to PauseDetect}
End.

-- 
David Rind
rind@binoc.bih.harvard.edu
From: agauld@gssec.bt.co.uk (Alan Gauld)
Newsgroups: comp.lang.pascal
Subject: Fix to editors bug in TP6 TurboVision
Date: 16 Dec 92 12:59:05 GMT
Organization: BT Glasgow Engineering Centre, Scotland.

There have been several posts recently about the bug with 3-6 in the
Teditor object in TVDEMOS. I beluieve Borland have a patch for this but I
will post my personal fix for anyone who wants it. There are no warranties
given or implied other than that it worked for me :-)

function ScanKeyMap(KeyMap: Pointer; KeyCode: Word): Word; assembler;
asm
        PUSH    DS
        LDS     SI,KeyMap
        MOV     DX,KeyCode
        CLD
        LODSW
        MOV     CX,AX  {Load the size of the map}
@@1:    LODSW
        MOV     BX,AX  {BX = Key}
        LODSW          {AX = Corresponding command}
        CMP     BL,DL  {Compare the ASCII Codes}
        JNE     @@2    {   If NOT equal go round again}
        OR      BH,BH  {If (BH=0) AND (ASCII Codes are equal)}
        JE      @@3    {   Return CommandCode}
        CMP     BH,DH  {If (Scan Codes are equal)AND(ASCII Codes are equal)}
        JE      @@3    {   Return CommandCode}
@@2:    LOOP    @@1    {If more in map goto @@1:}
        XOR     AX,AX  {Set AX = 0}
@@3:    POP     DS     {Return AX}
end;

Simply place instead of the listed function in editors.pas.
The comments are simply my attempt to understand what was going on. If they
are wrong, no flames please!
-- 
-----------------------------------------------------------------------
A.J. Gauld				EMail: 	  agauld@gssec.bt.co.uk
BT, Glasgow Engineering Centre,         Phone:    +44 41 553 2140
229 George Street, Glasgow, UK          PostCode: G1 1BZ
-----------------------------------------------------------------------
Newsgroups: comp.lang.pascal
From: keisu@sics.se (Torbj|rn Keisu)
Subject: BP7 - inclusion of debug information ??
Organization: Swedish Institute of Computer Science, Kista
Date: Fri, 18 Dec 1992 07:49:01 GMT

Could anyone shed some light on whats get included when the /v switch is used
with bpc.

I made a small test using a program and a single unit containing almost nothing.

The following results were obtained regarding the size of the resulting .exe

compile flags in pgm/unit    /v flag    size
D+, L+                        off       1664
D+, L+                        on        3657
D-, L-                        off       1664
D-, L-                        on        3569   ?????

In the last line the resulting file is almost as big as the one with full debug 
info, why is this ? The difference in size compared to the /v case corresponds 
roughly to the amount of declarations and linenumbers in the program.

The connection to the real world is that I have a fairly large  application that 
cannot be compiled with /v flag (using bpc) even though all files have D-,L- set.
bpc fails with error 110, which incidentally isn't in the written documentation.
The cause is debug symbol table overflow. All is fine when compiling in the IDE
for the internal debugger, compiling in the IDE for standalone debugging fails as
well.

Suggestions anyone ??

/tk
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: High speed clock
Keywords: clock
Organization: University of Vaasa, Finland
Date: Sat, 12 Dec 1992 07:05:35 GMT

In article <Bz47zL.5sH@news.cso.uiuc.edu> amead@s.psych.uiuc.edu (Alan Mead) writes:
>>Does anyone out there know how to do high-speed timing?

>First, a solution:  there is a self-extracting zip file, TIMER.EXE,

>Now, can anyone EXPLAIN how this is done?  I have always wanted to
>know--it's really not the best situation to have very OS-specific code

I can't but I have some references I have come across stored in
 115799 Sep 20 08:35 garbo.uwasa.fi:/pc/ts/tsfaq30.zip

But hopefully someone else can do better than I on this to explain
in comp.lang.pascal.

   All the best, Timo

..................................................................
Prof. Timo Salmi
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: ddavidso@metz.une.edu.au (Dean Davidson)
Newsgroups: comp.lang.pascal
Subject: Re: Turbo Vision Keys?
Date: 17 Dec 92 05:36:38 GMT
Organization: University of New England, Armidale, Australia

In article <724065276.AA00687@contrast.wlink.nl> berend@contrast.wlink.nl (Berend de Boer) writes:
>Richard Madison wrote in a message to All:

> RM> 	My problem is that I have a screen which has 40 field to
> RM> enter. I don't like that the <ENTER> key accepts all data. 
> RM> I would like to be able to use the <ENTER> key to move to
> RM> the next field.  I would also like to arrange the keys below
> RM> to do what it says.

[.... deleted ....]

>Not so difficult, but you do, in this way, not conform to the CUA
>standard which is a serious drawback I think. More and more people are
>using CUA compliant UIs.

I also prefer to use the ENTER to move to the next field.  My user interface
routines that I use, incorporate this feature.

You mention the CUA standard.

What is this? Where is it used? How widely is it used?

I'm all for using a standard user interface, but I was not aware that
any standard existed.

More information would be appreciated on the CUA standard, or any other
standards that do exist.

Cheers,

-- 
Dean Davidson                                 ddavidso@metz.une.edu.au
Dept Psychology                               Phone 61 67 73 2585
University of New England                     Fax   61 67 72 9816
Armidale NSW 2351 Australia                   VK2 ZID
From: kjell@henry.e.kth.se (Kjell Rilbe)
Newsgroups: comp.lang.pascal
Subject: Re: Looking for STAKDUMP.OBJ
Date: 16 Dec 92 14:10:53 GMT
Organization: Dept. of EE, Royal Institute of Technology, Stockholm, Sweden

In article <1992Dec16.000345.1@vms.ucc.okstate.edu> v923106@vms.ucc.okstate.edu writes:
>I am looking for a file called stakdump.obj. It comes from Kim Kokkokonnens on
>the Tpro bonus disk. 
[Rest of text deleted]

I think it is included in a file called bonus507.zip, and it should be
available at garbo.uwasa.fi in the turbopas directory.

/Kjell
-- 
------------------------------------------------------------------------
! Kjell Rilbe           !  "There's only one way of life,              !
! kjell@elixir.e.kth.se !   and that's your own!"   ---The Levellers   !
------------------------------------------------------------------------
From: ATURNER@rcnvms.rcn.mass.edu (Alan Turner)
Newsgroups: comp.lang.pascal
Subject: uuencode/uudecode TP source
Date: 14 Dec 92 11:45:11 GMT

Date sent: 14-DEC-1992 



To those of you who have mailed me for this code and have not received it - and
to those of you who plan to mail to me a request for this code.

I have mailed out to everyone that has requested the uu source but for some of
you my mailserver does not recognize your internet address.

The files are now available at garbo in dir /pc/turbopas/uusource.zip


-=Alan Turner=-                
-=Email: aturner@ecn.mass.edu=-
From: gt2768b@prism.gatech.EDU (JENGLUNG LIN)
Newsgroups: comp.lang.pascal
Subject: Need help in porting dos TP programs to Windows
Keywords: tp, dos, windows
Date: 14 Dec 92 16:14:33 GMT
Organization: Georgia Institute of Technology

Can someone tell me if there are utilities to convert Turbo Pascal
programs written in dos to ms-windows program.

Thanks.
From: ijohnson@metz.une.edu.au (Ian Johnson)
Newsgroups: comp.lang.pascal
Subject: Re: Pull Down Menus
Summary: Try TEGL
Date: 15 Dec 92 23:05:00 GMT

In article <723445110.0@nwark.FidoNet>, Bert.Edens@f1160.n391.z1.FidoNet.Org (Bert Edens) writes:
> Greetings, all!
>     I'm looking for TPU's or source (naturally) for pull-down menus with
> TP6. Basically, just want to be able to have pull down menus (with
> sub-menus possible) and execute a particular function depending on the
> selection made. Any help would be greatly appreciated.
> 
> E-mail also appreciated...
> 
> Thanks...
>    -Bert
> 
>  * Origin: HBK BBS - GUI? Mouse? Where's my cat?... (1:391/1160)

Try using the TEGL system.  It's great for creating GUIs and other things.
For example it has a font editor, as well as several fonts of its own.
It also has a virtual memory manager which is really useful.
It's quite easy to use, once you get the hang of it.
The address is:
  TEGL Systems Corporation
  780-789 West Pender Street
  Vancouver
  BC
  Canada V6C 1H2
  phone:  (604) 669-2577
  fax:    (604) 688-9530.

Ian Johnson.  email:  ijohnson@metz.une.edu.au


Newsgroups: comp.lang.pascal
From: ludwig@cat.de (Stefan Ludwig)
Subject: probs with tpw calling c-application
Organization: C.A.T. Kommunikations-System
Date: Fri, 18 Dec 92 19:06:08 GMT

Der netters,

we have the following problem with accessing (C)-huge pointers from
Turbo pascal for Windows (V. 1.5):

An application allows us to call our self-implemented DLL which we
wrote using TPW 1.5. The application declares data structures like:

    double huge * DataArray

and lets us get get the huge pointer via a DLL-call
from Turbo Pascal as a Pascal-data-type "Pointer".
Unfortunately we cannot use this pointer to  acess data behind
the 64k barrier.

We tried to use pointer artihmetics in Turbo pascal but all we earned
was yet another UAE. It seems, that Turbo pascal performs a different
pointer arithmetic than C does with huge pointers.

Does anybody know a solution to that problem?

Any hints appreciated.
(Please answer by email, because I dont regularly read this area)

---
  Stefan Ludwig (ludwig@cat.de)                     
  C.A.T. Kommunikations-System, Frankfurt, Germany
From: legarret@ecs.umass.edu
Newsgroups: comp.lang.pascal
Subject: Units for writing door programs (BBS)
Date: 17 Dec 92 00:20:11 GMT

	Could someone tell me where I can find (FTP site) units for 
writing doors (bbs games, utils.. etc)?, I remember seeing sometime ago
 a shareware pckge w/ comm units for this purpose.
	any help appreciated....
-CL

Email: legarret@ecs.umass.edu
From: csnyder@bobcat.ent.ohiou.edu (Chris Snyder  UNDER-ECE)
Newsgroups: comp.lang.pascal
Subject: Copying Files directed by TP code
Summary: copying filesies
Keywords: DOS copy, copying files
Date: 20 Dec 92 16:16:57 GMT
Distribution: comp.lang.pascal
Organization: College of Engg. & Tech., Ohio University, Athens, Ohio

I have written some code that will sort the files in a directory that will
'best fit' onto a floppy disk. (ie. gif files) The code works fine in 
generating a file that contains the different disk volumes, but I would like
to have the program copy the files as well. The only way that I was able to 
get the files copyied was to have it make a BAT file with copies the files
using dos copy and the pause command. I don't like this, I want more control 
over the copying.

I have tried using the EXEC command but I can't get it to work. Here is the 
command lines I have tried.

EXEC('copy',name1+name2)   (* returns DOSERROR = 2 file not found  *)

EXEC('cpy.bat',name1+' '+name2)   (* locks up everything had to RESET  *)
                                  (* cpy.bat is a batch with
 					copy %1 %2                     *)
I also tried using the {$M} compiler directive to adjust the heap to various
sizes and then using the swapvectors procedure before and after the EXEC 
command, but I got the same results as above.

Another posibility that I consdered was to copy the program with READ and 
WRITE. This works but is ungodly slow. I tried using various buffer sizes
and methods but the fastest speed that I could attain for copying a 60K file
from the HD to a 3.5 disk was about 24 sec, compared to doing it in DOS with
the copy command of 4 sec. That is not a good time ratio and will never do.

What I wonder is if anybody has any suggestions on how I could copy files
directed by the code efficiently. Any help would be appricieted. Ethier post
here or mail me at CSNYDER@Bobcat.Ent.OhioU.Edu.

Thanks in advance.       Chris....
Newsgroups: comp.lang.pascal
From: boie@prince.DKRZ-Hamburg.DE (Markus Boie)
Subject: date/time routines available?
Organization: Deutsches Klimarechenzentrum GmbH, Hamburg
Date: Thu, 17 Dec 92 20:07:26 GMT

I would like to get the number of minutes passed between two given dates and
times. What I don't like is to reinvent the wheel. I did some hacking with
some days-between-dates algorithm (TI58) but it seems to give wrong results.
Has anyone already done this and would be willing to share the code?

thanks for any help,

Markus