HDTenEightyP/NetNews huggingface dataset:
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: TP: Compiling to .obj?
Organization: Queen's University
Date: Sat, 23 Jan 1993 00:49:12 GMT

In article <jnpotts.727733992@vincent1.iastate.edu> jnpotts@iastate.edu (James N. Potts) writes:

>I'd like to make an object file containing functions to be used by another
>program.  How can I turn my pascal file into object code?

Turbo Pascal can't, but Stony Brook's Pascal+ compiler advertises the 
ability.  The price has come down a lot recently, but it's still rather 
expensive, and I don't have a copy.  

Other PC Pascal compilers can also do it, but SBP+ is the only one I know 
of that handles the TP dialect.

Duncan Murdoch
Newsgroups: comp.lang.pascal
From: lawrence@bioscience.utah.edu (jeff lawrence)
Subject: drivers in OVR?
Followup-To: comp.lang.pascal
Organization: university of utah
Date: Tue, 26 Jan 93 16:59:55 GMT

hope this isn't a FAQ - 

is it possible to link driver and font OBJ files into overlays instead of
the EXE file in BP7?  the manuals don't seem to outwardly forbid it, and
the compiler does fine overlaying the unit with the procedures, but i can't
initialize the drivers.  if the unit is *not* overlaid, things are fine.
seems like a waste of space to put them in the EXE file.  am i grabbing at
straws here?

----
jeff lawrence
university of utah
lawrence@bioscience.utah.edu
From: scst90@csc.liv.ac.uk (Mr. J.J. Willmott)
Newsgroups: comp.lang.pascal
Subject: Wanted: Simple Pascal Programs
Date: 25 Jan 93 12:01:19 GMT
Organization: Computer Science, Liverpool University


  I need a few simple programs (adding a couple of numbers together, that kind of thing) in order to test out a piece of software. I have never used Pascal, which is why I want some simple stuff.

                             Thanx.

                              _
 Jamie 'WeirdWolf' Willmott  / ])  "Given that God is infinite, and given
  scst90@uk.ac.liv.compsci  RED/    that the universe is also infinite...
                           DWARF
    "Better Than Life"    ([_/  ...would you like a cheese & ham breville ?"
Newsgroups: comp.lang.pascal
Subject: Re: password encryption (e.g. in bat files)
From: cctr132@csc.canterbury.ac.nz (Nick FitzGerald, PC Software Consultant, CSC, UoC, NZ)
Date: Tue, 26 Jan 1993 02:59:20 GMT
Reply-To: Nick FitzGerald <n.fitzgerald@csc.canterbury.ac.nz>
Organization: University of Canterbury, Christchurch, New Zealand

In article <35203@adm.brl.mil>, OLDENHUIS@ib.agro.nl (Roelof
Oldenhuis) writes:

> Maybe this is not the wright group, but I am looking for a program (utility) 
> that can hide strings (passwords) in batch files (or exe files).
> The reason is obvious; I want to login with a batch file and I don't want to 
> show my password in it.

Maybe I'm missing something here, but this seems like a pointless
search.

If you can't guarantee the physical security of your PC against
unauthorized people reading a batch file on it, then you can't guarantee
its security from unauthorized people executing or copying the batch
file (and any associated programs), so you can't do this "securely" no
matter how clever and involved a system you devise?

(Actually, having just written that, I think I have thought of a way to
do it, but it involves some pretty ugly low-level trolling around the
system, and may need to be login program specific.)

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 Nick FitzGerald, PC Applications Consultant, CSC, Uni of Canterbury, N.Z.
 n.fitzgerald@csc.canterbury.ac.nz  TEL:+64(3)364 2337, FAX:+64(3)364 2332
From: andres@scf16.scf.loral.com (Jeff Andres)
Newsgroups: comp.lang.pascal
Subject: BPW: Closing MainWindow ???
Date: 22 Jan 93 14:42:22 GMT
Organization: Loral Space & Range Systems

Using BPW and the resource workshop, I've used the skelton features
of a Borland program to begin hacking/programming in windows. The
program I started with (as I recall) didn't have an Exit function
but it did of course have the standard window close call. I wanted
to add the Exit feauture so I went into RW and created one with some
bogus return code (99). My program could capture this but I couldn't
quite figure out how to shutdown the windows....yes, RTFM...I see
CanClose, but not CLOSE...I see DESTROY, but that doesn't appear
to really shutdown/clean-up gracefully....hints ???

After getting frustrated, I decided that Borland had to have added this
feature into one of their examples and stumbled upon HeapSpy. Glancing
through their code I could not find where their Exit was called. I
opened their Menu using RW (HeapSpy.res) and found out that their return
code was set to something like 23400. So I took a chance and changed my
code of 99 to 23400 and BAM, it worked...what is so special about this
number and where is it documented....are there other reserved return
codes ???

Cheers,

-- 

      Jeff Andres 			---  Loral Space and Range Systems
 					---  1260 Crossman Ave.  MS-S37
  e-mail: andres@scf16.scf.loral.com    ---  Sunnyvale, California  94089
Newsgroups: comp.lang.pascal
From: smithme@spot.Colorado.EDU (Steve Crawford)
Subject: Need help displaying Bitmaps in TP 6.0
Organization: University of Colorado, Boulder
Date: Tue, 26 Jan 1993 20:03:45 GMT


	Hello! I am relatively new at Turbo Pascal, having just taken a
	single semester of it. I am toying with several ideas for simple
	little game type programs, preferrably in graphics modes. I have
	written a few simple routines to get a mouse cursor working, and
	I have a SuperVga .BGI driver that I found floating around on
	one of the archives. 

	However, I see no real use for USING a SuperVga driver unless I 
	can figure out a way to display 256 color bitmap images in my
	program. I imagined there would be hundreds of utilities out
	there to do such a thing, but I have yet to find a SINGLE ONE
	that was not outdated. (.TPU units from older versions of Turbo
	Pascal.) I am looking for something that is preferrably not
	a commercial software package, as I just want to write some
	small programs. (I don't have the cash to invest $50+ on a program
	I am just playing with.) 

	The One utility I have found that seemed quite useful was called
	ANIVGA, but it claims not to support anything above 320x200x256
	resolution, and I am working with 640x480x256. 

	If ANYONE knows of anything written to display bitmapped images
	(.GIF, .PCX, or just something to grab them into a format it
	can use) I would appreciate them pointing me in the right 
	direction. I doubt very much I can write my own routines to
	do this because, frankly, I have no clue how to do it. Assistance
	is appreciated.

	Thanks!

	smithme@spot.colorado.edu
From: wbdst+@pitt.edu (William B Dwinnell)
Newsgroups: comp.lang.pascal
Subject: Re: Machine specific info needed...
Date: 27 Jan 93 13:40:06 GMT
Organization: University of Pittsburgh


Well, if all you need to do is idebxxx identify each machine, you might
right your application, so that it records the very first time/date 
that it is run in a file. Assuming that you don't have too many
machines that will be doing this, it may work.
Newsgroups: comp.lang.pascal
From: mavmav@mksol.dseg.ti.com (michael a vincze)
Subject: Re: BP 7.0 bug??????
Organization: Texas Instruments
Date: Fri, 22 Jan 1993 18:09:27 GMT

In article <4887@seti.inria.fr>, lasgout@solaris.inria.fr (Jean-Marc Lasgouttes) writes:
|> In article <35168@adm.brl.mil>, lee@cpu.us.dynix.com (Lee Crites) writes:
|> |> I am getting this message a LOT with BP7.  Is there a bug here?  I have
|> |> 4meg of RAM, and set up my computer so that the only TSR's kicking around
|> |> are the mouse driver and SSTOR (SuperStore disk compression utility).  I
|> |> ought to have loads of room, but can't seem to get at it.  I can't even
|> |> get most of the TV demos to run from within the IDE (^F9) without running
|> |> out of memory.  I played with this some last night, but didn't make any
|> |> headway.  I ran the utility that cam with BP7 to test the EMS, and it
|> |> worked fine.  I also have the IDE set up to use EMS (something I had to do
|> |> quite early just to get some of my other programs to compile).
|> |> 
|> |> Any ideas?!?
|> |> 
|> 
|> A stupid idea: are you sure that you are using the protected mode IDE? I think
|> that turbo.exe is the old-fashion real-mode IDE for PC-XT.


Some people have tried to answer this problem, however it does appear to be a
bug.  I encounter the same problem when profiling TPW programs.  When I
first enter the profiler, I can bring up the source code and a view of
line count frequencies.  If I run the program, then restart it, the second time
around, the window with the source code disappears.  OK. so I try to open
the source code window, that's when it says I do not have enough memory.  If
I exit and start the profiler again, it works (but only for one run.)

It sounds like either an intermittent problem, or somewhere some memory is
being held hostage.  BTW I have 8meg of RAM and no TSRs running.  Any help
on this topic would enlighten several BPers.

Best regards,
Michael Vincze
mav@asd470.dseg.ti.com
Newsgroups: comp.lang.pascal
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Strange behavior?
Organization: Queen's University
Date: Fri, 22 Jan 1993 15:33:32 GMT

In article <727662763.AA01194@contrast.wlink.nl> berend@contrast.wlink.nl (Berend de Boer) writes:
>procedure T;
>var
>  s : string;
>begin
>  asm
>    mov  ax,OFFSET s        {* line 1 *}
>    lea  ax,s               {* line 2 *}
>    mov  ax,SEG s           {* line 3 *}
>  end;
>end;

>If you look at the compiled code you will see that line 1 and line 3 are
>compiled strange (in my honest opinion). Register ax is loaded with
>$FFCE ($FF00 in real mode) and $FFFF respectively, while line 2 is OK.

The problem is the strange way BASM handles symbols.  To BASM, "s" means
the BP relative offset of the local variable "s".  Neither "OFFSET s" nor
"SEG s" are meaningful.  The bug is that neither your first line nor your 
last line are signalled as syntax errors, as they should be.  

A more forgiving implementation would translate line 1 into line 2, and line 
3 into "mov ax,ss", but BASM is not forgiving.


Duncan Murdoch
dmurdoch@mast.queensu.ca
From: sixx@matt.ksu.ksu.edu
Newsgroups: comp.lang.pascal
Subject: Getting in touch with Borland
Date: 22 Jan 1993 12:41:05 -0600
Organization: Kansas State University
Distribution: na
NNTP-Posting-Host: matt.ksu.ksu.edu

Is there some way, via email, that I can get in touch with Borland?
Thanks,

sixx@matt.ksu.ksu.edu
--
Sorry, no .signature
From: berend@contrast.wlink.nl (Berend de Boer)
Newsgroups: comp.lang.pascal
Subject: Previous messages
Date: Tue, 26 Jan 1993 09:01:40

Hello All,

I reposted the previous messages as they too seem to have been lost :-(


Groetjes,

Berend. (-:
fido: 2:281/527.23
email: berend@contrast.wlink.nl
From: roth@oasys.dt.navy.mil (Pete Roth)
Newsgroups: comp.lang.pascal
Subject: Re: TV-question1
Date: 27 Jan 93 12:38:57 GMT
Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
Organization: The David Taylor Model Basin

In comp.lang.pascal, A7101DAA@helios.edvz.univie.ac.at writes:
>Hallo!
>I am looking for a possibility of updating the TurboVision
>MenuBar. The Menu items may be variables. But if I change the variables
>the menu bars stay the same.
>    Thanx in advance

Guessing as to your intent: you want to _change_ the menubar during
program execution.

If my assumption holds, then you must Delete the Menubar from the
Desktop, Dispose it, Init a new menubar with the desired changes, and
Insert it into the Desktop.

- - - - - - - - - - - - - - - - - - - - - - - - - -
Grace & peace
Pete                         roth@oasys.dt.navy.mil
"Easy for me, difficult for you." - Senor Wences.
Newsgroups: comp.lang.pascal
From: ahall@dante.nmsu.edu (HALL)
Subject: Machine specific info needed...
Organization: New Mexico State University
X-Newsreader: TIN [version 1.1 PL6]
Date: Wed, 27 Jan 1993 03:30:54 GMT

I am writting a program that checks to see if it is
being run on the machine it is liscensed for.  I
need to be able to read some piece of data specific
to each individual machine.  Similar to reading the 
number off of an ethernet card, however most of the
machines will not have an ethernet card.  Is there
something in BIOS or on a motherboard that could be
read in Pascal?  Any help on this is GREATLY
appreciated.

Thanks
A. Hall

Newsgroups: comp.lang.pascal
From: focke@gmd.de (Stefan Focke)
Subject: TPW problem: Using huge structures (GlobalAlloc)
Organization: gmd
Date: Tue, 26 Jan 1993 11:38:31 GMT

Hello!

With GlobalAlloc and GlobalLock I got a pointer to a memory block witch size 
is 600 kBytes.

I want to fill this block with a pattern. So I tried FillChar and found out, 
that it is not possible to fill more than one segment (64 k) with this 
procedure. 

My problem is: How can I get the address of the next segment of this block?
               If p is a pointer to the first segment of the 600kB block,
               p=ptr(seg(p)+1,0) seems to be wrong.	

Thank you

Stefan Focke  (focke@gmd.de)

----------------------------------------------------------------------

Stefan Focke                  Tel. 02241-14-3154
GMD-I8                        e-mail: stefan.focke@gmd.de
Postfach 1316
D-W 5205 Sankt Augustin 1            
Xref: sparky comp.lang.pascal:8382 comp.os.ms-windows.programmer.misc:5215
From: ppollet@cismibm.univ-lyon1.fr (Patrick POLLET)
Newsgroups: comp.lang.pascal,comp.os.ms-windows.programmer.misc
Subject: Re: Give window a caption
Date: Thu, 21 Jan 1993 08:40:34 GMT
Organization: INSA  CENTRE INFORMATIQUE DU 1er CYCLE
NNTP-Posting-Host: pc110-02.insa-lyon.fr

In article <C15rpJ.Izy@cs.vu.nl> martijn@cs.vu.nl (Lemmens ML) writes:
>From: martijn@cs.vu.nl (Lemmens ML)
>Subject: Give window a caption
>Date: 20 Jan 93 15:15:18 GMT


>I have created a window (TWindow) with Borland Pascal 7.0 without
>a caption. While the program is running I want to change the looks of
>the window and give it a caption. Is this possible without destroing
>the window and creating a new one?

>Martijn

  in TurboVision or OWL?

   In OWL I think there is something called SetWindowText(Handle,NewText)
   that is actually a Window API call ? (no experience on that)

   In Tvision you could:

      1. Change the Title of the Window by
           With ThatWindow^ do
             begin
                If Title<>Nil then DisposeStr(Title);
                (* Title is a field of the tWindow Object *)  
                Title:=NewStr(TheNewTitle);
                Frame^.redraw;  (*faster that full redraw*)
              end 

      2. Overload its method GetTitle so that at every redraw, the
         Window redraw method will "recalculate" its new caption:

         let's suppose you have an editor Window that should holds
           the name of the File that is being edited or "Untitled" if
           it is a new file 
         you could have :

             type tMyWindow=object(tWindow)
                    FileName:pString;   (* WILL BE NIL AT THE CONSTRUCTION*)
                    ......
                    Function GetTitle(maxSize:integer):tTitleStr;VIRTUAL;
                    Procedure SetFile(aNewFilename:String);  
                    ......
                    end;

             function TMyWindow.GetTitle(maxSize:Integer):tTitleStr; 
             (* don't use Title that is NIl from the constructor and
                stay that way *)
             begin
                if FileName=Nil then GetTitle:='My editor [Untitled]'     
                else GetTitle:='My editor ['+FileName^ +']';
             end;
              
             Procedure tMyWindow.SetFile (aNewFilename:String);
             (* by convention an empty file would means New file *)
             begin
               If Filename<>Nil then DisposeStr(Filename);
               Filename:=NewStr(aNewFilename);  (* =NIl if empty*)
               Frame^.redraw
             end;      

Hope it helps
ppollet@cismibm.univ-lyon1.fr (Patrick POLLET)
--------------------------------------------------------
Dr Patrick L.Pollet
Institut National des Sciences Appliquees
Centre Informatique du 1er Cycle  Bat 110
20 Avenue A.Einstein
69621 Villeurbanne Cedex France
--------------------------------------------------------
Phone: 72 43 83 80 -   la premiere erreur c'est
Fax  : 72 43 85 33 -   de se lever le matin  ... GASTON
-------------------------------------------------------
Newsgroups: comp.lang.pascal
From: focke@gmd.de (Stefan Focke)
Subject: Re: URGENT HELP NEEDED ON RESOURCE WORKSHOP (TPW 1.5)
Organization: gmd
Date: Wed, 27 Jan 1993 08:50:47 GMT

In article <930127030733_75230.1437_DHE59-1@CompuServe.COM> 75230.1437@CompuServe.COM (I.I.S.) writes:
>From: 75230.1437@CompuServe.COM (I.I.S.)
>Subject: URGENT HELP NEEDED ON RESOURCE WORKSHOP (TPW 1.5)
>Date: 26 Jan 1993 22:14:36 -0600
>A very weird problem: my TPW 1.5 application will run only if the
>Resource Workshop is running. If not, whenever I start the application,
>I get an error: "error code = -1". 



I think that I had a problem like this some time ago. I think, that the 
problem was, that my application was not able to load the BWCC.DLL. Prehaps
you should examine if you need it.


Stefan

----------------------------------------------------------------------

Stefan Focke                  Tel. 02241-14-3154
GMD-I8                        e-mail: stefan.focke@gmd.de
Postfach 1316
D-W 5205 Sankt Augustin 1            
Newsgroups: comp.lang.pascal
From: s14250dy@UMASSD.EDU
Subject: Re: ANIVGA Help
Reply-To: s14250dy@UMASSD.EDU
Organization: UMASS DARTMOUTH, NO. DARTMOUTH, MA.
Date: Mon, 25 Jan 1993 18:46:10 GMT

In article <1993Jan20.033416.34950@ns1.cc.lehigh.edu>, bsc0@ns1.cc.lehigh.edu (BRIAN STUART COSTELLO) writes:
>
>>sorry if i miss understodd but HOW w....what do you mean by 'directly
>>place in your code ' ??
>>
>Yes, I'd like to place the .cod files directly in my .pas files.
>-- 

I think what he means is that he wants a code translation of the file, as in a
constant array, or type declaration or something.
From: wbdst+@pitt.edu (William B Dwinnell)
Newsgroups: comp.lang.pascal
Subject: Re: Pascal BBS area
Date: 28 Jan 93 13:34:49 GMT
Organization: University of Pittsburgh


I don't know about individual BBSs, but FidoNet has a Programming echo,
so if you can tap into that...
Newsgroups: comp.lang.pascal
From: jnpotts@iastate.edu (James N. Potts)
Subject: TP: Compiling to .obj?
Organization: Iowa State University, Ames IA
Date: Fri, 22 Jan 1993 20:19:52 GMT

I'd like to make an object file containing functions to be used by another
program.  How can I turn my pascal file into object code?

James

-- 
_____________________________________________________________________
James N. Potts          |  "To err is human.  To get multiple UAE's 
jnpotts@iastate.edu     |   requires MS Windows."
tabp6@isuvax.iastate.edu|                      - Me
Newsgroups: comp.lang.pascal
From: oamancin@undergrad.math.waterloo.edu (Adrian Mancini)
Subject: coding with user defined var types
Keywords: var user defined
Organization: University of Waterloo
Date: Thu, 28 Jan 1993 02:57:18 GMT

Hi

	I'm implementing a tree that will accept user defined data.
That is on one run the user may want to store integers in the tree
and on the next  run the user may want to store char. 

	Is there anyway one can postpone declaring a type 
structure until the user can be prompted as to what kind of data
will be entered. (in PASCAL of course)

	Any kind of answer would be ACES!!!!



					Thanx

ADRIAN
"Eat more Moose"

Newsgroups: comp.lang.pascal
From: desrg00@DMI.USherb.CA (GUY DESROSIERS)
Subject: Alphabetical sort of dir. using FindFirst & FindNext.
Organization: Universite de Sherbrooke -- Dept. d'Informatique
Date: Thu, 28 Jan 1993 22:07:05 GMT

     What's the easiest way to sort a directory using FindFirst and
its cousin FindNext ?  I'm using TP 6.0 and limited in free memory.

     Thanks in advance.

.-------------------------------------------------.---------------------------.
| Org.  : University of Sherbrooke, PQ, CANADA    | Everybody here brings     |
| Dept. : Dept. of Math & Computer Science        | happiness. Some by coming |
| E-Mail: desrg00@DMI.USherb.CA                   | in... some by leaving!    |
`-------------------------------------------------'---------------------------'
-- 
-------------------------------------------------.---------------------------.
| Org.  : University of Sherbrooke, PQ, CANADA    | Everybody here brings     |
| Dept. : Dept. of Math & Computer Science        | happiness. Some by coming |
| E-Mail: desrg00@DMI.USherb.CA                   | in... some by leaving!    |
From: desrg00@DMI.USherb.CA (GUY DESROSIERS)
Newsgroups: comp.lang.pascal
Subject: Can't use redirection ">" with EXEC call ???
Date: 23 Jan 93 19:42:32 GMT
Organization: Universite de Sherbrooke -- Dept. d'Informatique


	I trying to do something like that (under TP 6.0)

	Exec('c:\dos\xcopy.exe', 'b:*.* > result.txt');

	I want to redirect the output in a file (result.txt).
	Exec doesn't seem to like redirection. Any idea what I
	do wrong.

	Thanks in advance.

Guy DesRosiers
Universtity of Sherbrooke
E-Mail: desrg00@dmi.usherb.ca
Newsgroups: comp.lang.pascal
From: jo@rrz.de (Jochen Magnus)
Subject: Re: BP7-DPMI and Novells-Dos-API
Organization: Rhein-Rechenzentrum GmbH, Koblenz, Germany
Date: Fri, 22 Jan 93 12:55:06 GMT

Duncan Murdoch writes
[...]
> You can't make calls to real-mode interrupts directly from protected mode.
> The BP run-time manager (or maybe the DPMI host) translates calls to INT 21, 
> but you'll likely have to do the translation yourself to talk to Netware.
> 
[...]

Hi Duncan,

however: I *CAN* make calls to resident programs and interrupts, I have tested  
it. The only problem is that I loose the values in the segment-registers. Many  
programs, the netware-shell i.e., needs DS: or ES: At the time, I'm helpless  
with the segment-reg-problem.

--
Jochen Magnus               E-Mail: jo@rrz.de (NeXT-Mail o.k.)
Rhein-Rechenzentrum GmbH    Voice:  +49 261 892 520
August-Horch-Strasse 28     Fax:    +49 261 892 525
D-5400 Koblenz, Germany     < DELENDA EST C... >


Newsgroups: comp.lang.pascal
From: gtd543a@sol.crt.columbia.edu (death)
Subject: Re: URGENT HELP NEEDED ON RESOURCE WORKSHOP (TPW 1.5)
Organization: Purgatory
Date: Wed, 27 Jan 1993 09:55:23 GMT
X-Newsreader: TIN [version 1.1 PL8]
X-Posted-From: sundial.gatech.edu
NNTP-Posting-Host: sol.ctr.columbia.edu

Stefan Focke (focke@gmd.de) wrote:
: In article <930127030733_75230.1437_DHE59-1@CompuServe.COM> 75230.1437@CompuServe.COM (I.I.S.) writes:
: >From: 75230.1437@CompuServe.COM (I.I.S.)
: >Subject: URGENT HELP NEEDED ON RESOURCE WORKSHOP (TPW 1.5)
: >Date: 26 Jan 1993 22:14:36 -0600
: >A very weird problem: my TPW 1.5 application will run only if the
: >Resource Workshop is running. If not, whenever I start the application,
: >I get an error: "error code = -1". 

: I think that I had a problem like this some time ago. I think, that the 
: problem was, that my application was not able to load the BWCC.DLL. Prehaps
: you should examine if you need it.

You should recompile your .RES file and make sure that all objects
in the RES file are correctly referenced with the appropriate
identifiers.
--
Death: the high price of living
========================================================================
Disclaimer:  I am not bubba.
Newsgroups: comp.lang.pascal