HDTenEightyP/NetNews huggingface dataset:
From: JDG111@psuvm.psu.edu
Newsgroups: comp.lang.pascal
Subject: Re: CRC values in Turbo PASCAL
Date: 11 Jan 93 19:03:20 GMT
 <1993Jan8.120512.15614dave@tygra.Michigan.COM>
Organization: Penn State University

> Does anyone know how to calculate CRC values in pascal?

   If you're attempting to "protect" your program from being hex edited, there
is a pretty simple way to do it.  I recently sat down and wrote a program, call
ed CRC, which simply reads in a file of type byte, and adds the values of all t
he bytes into a LONGINT variable.  THis longint variable is converted to a 10 d
igit string, excrypted, and appened to the end of the EXE program that is to be
 protected.  The EXE contains code to read all the bytes of itself, and add the
m up, just like the CRC program.  However, it subtracts the last 10 bytes, beca
use that is the CRC number.  It converts the excrypted crc number back into a l
ongint, and compares it's total with the correct total.  If they are off, you'l
l know.  Of course, this method certainly isn't bulletproof, but it helps prote
ct your code from hacking or cracking.  On the other hand, if you were refering
to actual CRC checks of data over communications lines, sorry, can't help ya.
Newsgroups: comp.lang.pascal
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Problem with TP7
Organization: Queen's University
Date: Wed, 6 Jan 1993 03:27:24 GMT

In article <1id7t2INN7ik@manuel.anu.edu.au> jjf101@deakin.anu.edu.au (Jason Ford) writes:
>I have this problem with Turbo Pascal 7.
>When ever I run a program from within TP7
>after excution is completed my mouse cursor
>has disappeared.

This was a common problem in TP 6; I hadn't heard it about TP7 before.  The 
usual TP 6 cause was a faulty mouse driver.  

Duncan Murdoch
dmurdoch@mast.queensu.ca
Newsgroups: comp.lang.pascal
From: reagan@hiyall.enet.dec.com (John R. Reagan)
Subject: Re: standard for pascal modules?
Organization: Digital Equipment Corporation
Date: Mon, 4 Jan 1993 21:34:09 GMT


In article <MAX.93Jan4140914@tantalus.uchicago.edu>, max@tantalus.uchicago.edu (Max Ziff) writes...
>Is there a standard for separate compilation in pascal?  I'm teaching
>using "Think Pascal" on the Mac, and it has this "unit" and
>"interface" syntax, but that doesn't seem to be in the 3rd Jensen and
>Wirth Pascal User Manual and Report.  A friend told me the "unit"
>extensions come from Berkeley and have become a de facto standard.
>Does anyone know if this is true?  Is there a published independant
>standard for modules?
> 

The Extended Pascal standard includes separate compilation.  It
doesn't look like "units" (which came from UCSD, not Berkeley).

You can order the Extended Pascal standard from the IEEE (order number
SH13243).

Basically, you use MODULEs to create INTERFACEs using the EXPORT
declaration.  You then use them with the IMPORT declaration.
It looks alot like Modula-2's syntax.  It also has options for
qualified names, renaming, etc.

---
John Reagan
Digital Equipment Corporation
reagan@hiyall.enet.dec.com
Disclaimer:  The opinions and statements expressed by me are not
             necessarily those of Digital Equipment Corporation.
---
Newsgroups: comp.lang.pascal
From: FM14 <FM14@music.mus.polymtl.ca>
Subject: Animations
Organization: Ecole Polytechnique de Montreal
Date: Thu, 7 Jan 1993 16:19:12 GMT

Hi!
          I'm looking for Units or Info for graphics animations techni-
que.  If you have great books or program for animations that would help,
please send or recommend them to me.
From: pihlab@hhcs.gov.au
Newsgroups: comp.lang.pascal
Subject: BP7 - Win & OS/2 DLLs
Date: 13 Jan 93 09:20:12 +1100
Organization: Aust. Dept. Health, Housing and Community Services


Two questions for windows & OS/2 users.

1. Are the DLLs produced by BP7 useable in both environments.  ie is a
Windows DLL the same as an OS/2 DLL ?

2. After reading the BP7 Object Windows doco I am lead to believe that Windows
never redraws portions of windows that were covered and then uncovered by
other windows.  It actually tells the owner of the window to redraw itself.
Is this the case?

-- 

Bruce...        pihlab@hhcs.gov.au

"If you swallow a live frog first thing in the morning ...
 Nothing worse will happen to either of you for the rest of the day."

*******************************************************************
* Bruce Pihlamae  --  Database Administration                     *
* Commonwealth Department of Health, Housing & Community Services *
* Canberra, Australia                             (W) 06-289-7056 *
*******************************************************************
* These are my own thoughts and opinions, few that I have.        *
*******************************************************************
Newsgroups: comp.lang.pascal
From: cerikson@edvac.cs.oberlin.edu (Carl Erikson)
Subject: BP 7.0 Debugging in Protected Mode
Organization: Oberlin College Computer Science
Date: Tue, 5 Jan 1993 19:26:29 GMT
Distribution: comp
X-Posted-From: edvac.cs.oberlin.edu
NNTP-Posting-Host: sol.ctr.columbia.edu

I recently purchased BP 7.0 and I have found that I can use the
integrated debugger when compiling to Real but I cannot use it when
compiling to Protected or Windows applications.  Is this the way
BP is supposed to work (this is the DOS version of BP)?  Do I have to
use Turbo Debugger if I am compiling a Protected mode application?

Thanks,
Carl Erikson (cerikson@occs.cs.oberlin.edu)
Newsgroups: comp.lang.pascal
From: byrd@lucerne.rice.edu (Marc J Byrd)
Subject: TPW1.5, COMM & ObjectWindows conflict?
Organization: Rice University
Date: Tue, 12 Jan 1993 01:40:10 GMT

I've tried & tried but I can't figure this one out:

I created an object to write certain commands to
a device over the serial port ('COM2' in this case).
I wrote a little WinCRT program to test the object,
and after a little twiddling, got it to work fine.

Now using the same object, except from a windowing program
via a menu-driven procedure, things lock up on me!

Is there a conflict somewhere?  Everything else works
robustly when I take out the comm port stuff.

Please email me directly & I'll post summary.

Thanks...

-- 
Marc J. Byrd - byrd@rice.edu       |  United We Stand. 
Rice University                    |  Whether or not you accept it, you are 
Dept of Elec & Comp Engr           |  responsible for the actions and 
XUV Holographic Microscope Project |  inactions of your government.
From: stone@hilbert.math.grin.edu (John David Stone)
Newsgroups: comp.lang.pascal
Subject: BP7 -- five more bugs
Date: 8 Jan 93 15:09:34 GMT


        Morten Welinder writes:

>           "Forward" is highlighted as a reserved identifier. It isn't.

and Jim replies:

>           Is this true?  I thought forward *was* a reserved identifier
>  for declaring forward procedures or do you mean that BP7 allows you to
>  call an identifier "forward" when it should be a reserved word?

        In standard Pascal, "forward" is not a reserved word, nor is that
sequence of characters normally used as an identifier (though such a use
would be legal).  It is, however, a predefined directive, the only required
directive in Pascal.  The language provides no mechanism by which
programmers can define or redefine directives, but an implementation of
Pascal may provide other directives, such as "external", as extensions.

        In Turbo Pascal, it seems to be a long story.  I have manuals only
for versions 3.0, 5.0, and 6.0.  In version 3.0, "forward" was a reserved
identifier.  In version 5.0, it was a directive, not an identifier, but it
was still a reserved word.  In version 6.0, it was still a directive, but
it was no longer reserved.  For present and future versions, you'd better
check your documentation carefully.

------  John David Stone - Lecturer in Computer Science and Philosophy  -----
--------------  Manager of the Mathematics Local-Area Network  --------------
--------------  Grinnell College - Grinnell, Iowa 50112 - USA  --------------
--------  stone@math.grin.edu - (515) 269-3181 - stone@grin1.bitnet  --------
Newsgroups: comp.lang.pascal
From: litt3509@mach1.wlu.ca (Carl Litt u)
Subject: Application Frameworks --- What is it??
Organization: Wilfrid Laurier University
Date: Fri, 8 Jan 1993 20:35:06 GMT

I just got my upgrade to Borland Pascal 7.0 from the courier last week.
Did everyone get that little pamphlet promoting BP7 (it was purple in
colour)?  Remember that special offer for Application Frameworks for $199?
Well, I was just wondering... how am I supposed to know that I actually
got Application Frameworks???  None of the manuals seems to mention it, and
I didn't get any special package saying *** APPLICATION FRAMEWORKS HERE ***,
so I kinda wonder if Borland forgot.  Can anyone tell me what this
Application Frameworks is, and how I can tell if I got it?

Newsgroups: comp.lang.pascal
From: Hendrik.Klompmaker@beheer.zod.wau.nl (Hendrik Klompmaker)
Subject: File locking question
Organization: Wageningen Agricultural University
Date: Mon, 4 Jan 1993 21:49:47 GMT

Hy,

This might not be the correct folder to put this question but I thought 
there might be a TP solution.
I have to keep a log file a everyone who logs in to my network. A bacth file 
is used to write to that log file by simple redirection:
username >>logfile.dat
which writes the username, time and date to the log file.
A problem arrises when 2 people log in at the same time. Right: the log file 
is locked by one of them and the other one gets a A-R-I error (abort,re...)
Is there a simple (and fast and small) method to detect if a file is locked 
or not. (since username is a TP program it would sure be possible to do the 
checking there (how ??) but maybe it would even be possible to do that at 
dos/batch level. 
Any hints ??

Bye

Hendrik

===============================================================================
|******** Wageningen Agricultural University. Animal Production Group ********|
-------------------------------------------------------------------------------
Hendrik Klompmaker		Internet : Hendrik.Klompmaker@Beheer.Zod.Wau.Nl
System Manager			Bitnet	 : KLOMPMAKER@HWALHW50.BITNET
Phone : +31 (0)8370-83934	Fax	 : +31 (0)8370-83962
Snail : Marijkeweg 40, 6709 PG	WAGENINGEN, The Netherlands
===============================================================================
Newsgroups: comp.lang.pascal
From: Robert_Salesas@mindlink.bc.ca (Robert Salesas)
Subject: Re: Pattern Matching for Spelling Correction
Organization: MIND LINK! - British Columbia, Canada
Date: Thu, 7 Jan 1993 10:21:32 GMT

> Tim Ciceran writes:
>
> Msg-ID: <1993Jan7.054651.25174@spartan.ac.BrockU.CA>
> Posted: Thu, 7 Jan 1993 05:46:51
>
> Org.  : Brock University, St. Catharines Ontario
>
> I'm currently working on the front-end to an information retrieval
> package and would like to incorporate a facility to provide for
> spelling correction. Does anyone have any recommendations for an
> efficient pattern matching algorithm which could be used in this
> capacity?
>
> The dictionary is rather large (but static) and I would prefer having
> the option to search the entries either on disk or through a table
> in memory.
>
> Any insights or references would be especially helpful.
>
> Thanks in advance,
>
> TMC
>



I too would be interested in hearing ideas.  I'd like to get a spell checker
with suggestions working, with a 120000 word dictionary (have it).
Obviously, the way to proceed is with a hash table, and soundex or metaphone
codes for matching.  However, the calcs I made end up with a table of 720
000Kb, not to mention the dictionary itself!  (6 bytes per word - hash key,
metaphone key, and index to word).  It isn't so obvious any more.  How does
one go about this?  Compression does do much on quasi random data, although I
can get very good string repitition compression on the dictionary itself.
Any ideas?


Rob

--
\------------------------------------------------------------------------/
\ Robert Salesas             | Internet: Robert_Salesas@mindlink.bc.ca   /
\ Eschalon Development Inc.  | CIS:    76625,1320  Tel/Fax: 604-520-1543 /
\------------------------------------------------------------------------/
From: roth@oasys.dt.navy.mil (Pete Roth)
Newsgroups: comp.lang.pascal
Subject: INHERITED: what are the advantages
Date: 11 Jan 93 13:30:13 GMT
Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
Organization: The David Taylor Model Basin

There's not much in the BP7 docs about using the reserved word
INHERITED, although it is used in place of all previously fully
qualified method invocations. For example, in place of

CONSTRUCTOR TDerived.Init ;
	BEGIN
		TBase.Init
		...

the new "example" is

CONSTRUCTOR TDerived.Init ;
	BEGIN
		INHERITED Init
		...

How is this new model an advantage?
- - - - - - - - - - - - - - - - - - - - - - - - - -
Grace & peace
Pete                         roth@oasys.dt.navy.mil
"Easy for me, difficult for you." - Senor Wences.
Newsgroups: comp.lang.pascal
Subject: Re: complex numbers
From: cscmd@lux.latrobe.edu.au (Mitch Davis)
Date: Sat, 9 Jan 1993 14:36:10 GMT
Organization: La Trobe University

In article <34876@adm.brl.mil> OLDENHUIS@ib.agro.nl (Roelof Oldenhuis) writes:
>Hello,
>
>Maybe it's a FAQ, but I couldn't find anything about this subject:
>Is it possible to calculate with complex numbers in Pascal?

Roelof and others:

I have a unit that does complex numbers.  I have mailed it to you and
Timo.  (I'm hoping Timo will mount it on Garbo, since archie doesn't
know about it).

Mitch.
Newsgroups: comp.lang.pascal
From: samodena@csemail.cropsci.ncsu.edu (S. A. Modena)
Subject: Re: LARGE Sorts and such...
Organization: Crop Science Dept., NCSU, Raleigh, NC 27695-7620
Date: Mon, 4 Jan 1993 20:49:21 GMT

In article <1993Jan3.222248.18162@news.acns.nwu.edu> delusion@casbah.acns.nwu.edu (Albert Schmezer) writes:
>	Hello all, again. I am in the midst of a large programming project,
>and have come across an interesting stumbling block. I hope this isn't a FAQ.
>If it is, could someone direct me to the source of the answer?
>
>	Anyways, for the question: How does one go about, in TurboPascal,
>sorting an array of IMMENSE proportions? What I mean is that I am making a
>database-type program, and I have at least 10,000 items in the database. How
......
>temporary file on the harddrive? How slow is this? How would I even go about
>doing this? Can I stick groups of 100 or so into an array and integrate the
>sorts? How would I do this?! Is this slow, too?
>
>
>	Thanx in advance!
><<delusion
>

You are on the right track in your thinking.

Generally speaking (and remembering back to just ten years ago on the
first micro I ever programmed on), a *good* sort utility takes a look
at the file (data) to-be-sorted and uses some heurustics to guess-timate
whether the data can be sorted in memory or must be sorted on-disk.
If, on-disk, then it does a calculation to guess-timate whether the data
is small enough for an efficient single pass...or should be broken into
a series of small files to be sorted individually FOLLOWED by a MERGE
of the sorted files.

Only *you* can make these design decisions, because only *you* know
whether you are programming for the PARTICULAR computer you are working
on OR if this program must ANTICIPATE everything from a dog-tired
IBM PC with 256K and dual floppies (I have one right behind me) and 
all the way up to what I'm programming on right now (33 MHz 486DX
with 20 Megs RAM and two 12 milliSec hard drives totalling >300 MBs).

This decision and design process is the essence of software development,
as opposed to "coding."  :^)  So you might come back with specific
questions if you get stumped once you'vew decided what the design 
parameters are going to be.  Good luck!

Steve
---
+------------------------------------------------------------------+
|     In person:  Steve Modena     AB4EL                           |
|     On phone:   (919) 515-5328                                   |
|     At e-mail:  nmodena@unity.ncsu.edu                           | 
|                 samodena@csemail.cropsci.ncsu.edu                |
|                 [ either email address is read each day ]        |
|     By snail:   Crop Sci Dept, Box 7620, NCSU, Raleigh, NC 27695 |
+------------------------------------------------------------------+
         Lighten UP!  It's just a computer doing that to you.    (c)
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
From: bobbe@vice.ICO.TEK.COM (Robert Beauchaine)
Newsgroups: comp.lang.pascal
Subject: Re: Mouse
Keywords: 256 mouse
Date: 8 Jan 93 20:02:03 GMT
Organization: Tektronix, Inc., Beaverton,  OR.

In article <1993Jan8.103345.3048@ms.uky.edu> carld@ms.uky.edu (Carl Lafferty) writes:
>I am having a problem getting a mouse driver implemented in turbo pascal
>6.0 to do a 256 color mouse cursor.  What I have done is create a 
>mouse event handler and placed it in line with the mouse using int 33h
>sub function $0C.  I am using mode $13 for graphics and my normal mouse
>cursor stuff works fine but I can NOT get a driver to even be called
>that I install like this.  I have resorted to having the driver simply 
>ser a variable and latching on the timer ISR.  

  I don't see anything necessarily wrong with what you're doing
  except the part where you say you want your routine to draw the
  mouse cursor.  That's a job better left to the mouse driver, which
  may be your problem.  Some quick questions:

  1.  Are you setting the position changed bit in the event mask
  when you call function 0C?  This determines what mouse events will
  generate a call to your function.

  2.  Is your function an interrupt handler?  It should *not* be,
  but many people make the mistake of declaring it so.  It *should*
  be a normal far function that modifies no registers and calls no
  DOS or BIOS functions.

  3.  If your function is of the correct type, are you setting the
  DS registers appropriately?  Your service routine will be called
  not with your program's data segment, but with that of the mouse
  driver when your function is called.

  I have a (almost) complete mouse unit that may be of help to you.
  The one problem I've had (and to date no one answered my request
  for information) is missed mouse events when running under
  graphics using .BGI functions. 


>
>What I want to do is watch for the mouse to be moved and when it is moved
>use my routine to draw the mouse pointer.  I could be doing this the 
>hardest way possible but it is the one that makes sense to me right
>now.  I am open to suggestions.
>
>Any and all help will be appreciated.
>
>Carl Lafferty


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ 

Bob Beauchaine bobbe@vice.ICO.TEK.COM 

"Look, I tried the cat experiment.  On the third trial, the cat was
dead.  On each of the subsequent 413 trials, it remained dead.  Am I
doing something wrong?"
			James Nicoll

Q.  How many Heisenbergs does it take to screw in a light bulb?
A.  If you know the number, you don't know where the light bulb is!

Newsgroups: comp.lang.pascal
From: Alex@camp.wpic.pitt.edu (Alex Ferguson )
Newsgroups: comp.lang.pascal
Subject: TP 6.0 and SQL
Date: 11 Jan 93 16:47:55 GMT
Organization: DAC, Child Psych, UPMC


Hi,

	I'm thinking about using TP 6.0 to access a DEC Rdb Database with 
SQL & I was wondering about a few things.  Does TP 6.0 have intrinsic SQL 
access functions (if so how well do they work with Rdb)?  If not, would I 
have to write my own access procedures, or is there an archived set 
somewhere on the internet?  I'd appreciate any answers that I get - reply 
throught E-Mail or by posting (doesn't matter).


						Thanks,
							Alex


/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
| Alexander J. Ferguson III                                          |
| Database Manager, DAC (Data Analytic Core)                         |
| Child Psychiatry, Western Psychiatric Institute & Clinic           |
| University of Pittsburgh Medical Center                            |
|                                                                    |
| alex@camp.wpic.pitt.edu   voice (412) 624-3705                     |
|                           fax   (412) 624-0223                     |
\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/

Newsgroups: comp.lang.pascal
From: ts@uwasa.fi (Timo Salmi)
Subject: Re: complex numbers
Organization: University of Vaasa, Finland
Date: Sun, 10 Jan 1993 08:56:25 GMT

In article <1993Jan9.143610.28416@lugb.latrobe.edu.au> cscmd@lux.latrobe.edu.au (Mitch Davis) writes:
>I have a unit that does complex numbers.  I have mailed it to you and
>Timo.  (I'm hoping Timo will mount it on Garbo, since archie doesn't
>know about it).

I'll be pleased to when it arrives.

   All the best, Timo

P.S. Don't forget to take a peek at the uplaod instructions
  12326 Jan  7 12:38 garbo.uwasa.fi:/pc/UPLOAD.INF
   4840 Dec 19 16:56 garbo.uwasa.fi:/pc/UPTEXT.INF
if you have not already done so.

..................................................................
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
Newsgroups: comp.lang.pascal
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Is LHA source in Pascal?
Organization: Queen's University
Date: Wed, 6 Jan 1993 22:23:21 GMT

In article <19306@mindlink.bc.ca> Robert_Salesas@mindlink.bc.ca (Robert Salesas) writes:

>Where can I find the indicated STREAMS13.ZIP file?  Does it support LZH or
>LZW compression?

It's on garbo.uwasa.fi, in /pc/turbovis.  It has both LZW and simple Huffman 
compression.

Note that there are bugs in that version's XMS stream and in the text 
filter; if you want to test an update, let me know.

Duncan Murdoch
dmurdoch@mast.queensu.ca
From: astoner@mcis.messiah.edu
Newsgroups: comp.lang.pascal
Subject: BPW Programming Book
Date: 5 Jan 93 15:56:16 GMT

Hello all,
  Now that Christmas is over I am looking to spend my yearly bookstore
gift certificate.  Last year I got a TP 6.0 Object Oriented Programming
and Turbo Vision book.  This year I would like to get one on BP 7.0 centered
primarily on programming for windows.  The only BP 7.0 books that I have
been able to find are more basic than what I would like.
  Could someone recommend a good windows programming book that uses BPW
examples?  Since I will likely have to order the book any information like
title, author, and ISBN number would be appreciated.  Or are there not any
books of this sort realeased yet?

.......................................................................

Item Subject: signature
--------------------------------------------------------------------------------
  Allen E. Stoner                       Internet: astoner@mcis.messiah.edu
  Academic Application Programmer                 Messiah College
  Voice:  (717)766-2511 ext. 7109       Fax:  (717)691-6002
--------------------------------------------------------------------------------
Newsgroups: comp.lang.pascal,comp.sys.ibm.pc.programmer
From: jzawodn@bgsu.edu (jeremy zawodny)
Subject: Pascal Routine needed to read DOS directories...
Keywords: pascal, dos, directory, needed
Organization: Bowling Green State Univ. (where I learn neat stuff, NOT!)
Distribution: na
Date: Wed, 6 Jan 1993 05:28:47 GMT


I am in need of a routine, unit, etc. that can be incorporated into a
Borland Pascal/Turbo Pascal 6.0 or 7.0 program I am working on.  What I
need is a way of reading a specified directory and obtaining a list of all
the file in it along with their sizes, and dates.

Any pointers, sources, help, etc. would be greatly appreciated!

Thanks,

Jeremy


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

jzawodn@andy.bgsu.edu

Newsgroups: comp.lang.pascal