Lazarus

Free Pascal => Windows => Topic started by: pmckone on September 25, 2020, 09:03:18 pm

Title: edit.pp - What Kind of Project ?
Post by: pmckone on September 25, 2020, 09:03:18 pm
edit.pp is a win32 program that comes with FPC.  It doesn't use any Component Library files.  When I double-click on edit.pp, Lazarus starts up, and asks what kind of project do I want to make.  None of the options look right.  I just want to edit the source and compile with FPC.  Thanks for any suggestions>
Title: Re: edit.pp - What Kind of Project ?
Post by: Martin_fr on September 25, 2020, 10:01:27 pm
"Program"
Title: Re: edit.pp - What Kind of Project ?
Post by: Thaddy on September 25, 2020, 10:12:21 pm
edit.pp is a win32 program that comes with FPC.
No it does not come with FPC (find -name edit.pp returns nothing and I have all the sources, so also the win32 parts, although I am working on Linux)
Quote
  It doesn't use any Component Library files.  When I double-click on edit.pp, Lazarus starts up, and asks what kind of project do I want to make.  None of the options look right.  I just want to edit the source and compile with FPC.  Thanks for any suggestions>
Where is it located? (relative path of course) It is probably a unit , not a program. I only checked this for FPC, not for Lazarus.
Title: Re: edit.pp - What Kind of Project ?
Post by: Martin_fr on September 25, 2020, 11:03:36 pm
It is in the fpc build svn, under demos.
Title: Re: edit.pp - What Kind of Project ?
Post by: Bart on September 25, 2020, 11:08:57 pm
Where is it located? (relative path of course) It is probably a unit , not a program. I only checked this for FPC, not for Lazarus.

There is a reason that Lazarus IDE asks what kind of application it should make.
And that reason is not that edit.pp is a unit.

Bart
Title: Re: edit.pp - What Kind of Project ?
Post by: winni on September 25, 2020, 11:21:53 pm
Hi!

edit.pp is a little bit dusty and rusty.

It is from  fpc 2.2.0.
2006? 2007? 2008?  Around that time.
In the directory demo/win32/

This tells my harddisk to me.

It is not in the current fpc and Lazarus.


Winni
Title: Re: edit.pp - What Kind of Project ?
Post by: Bart on September 26, 2020, 12:16:09 am
It is not in the current fpc

I beg to differ:

Code: [Select]
C:\devel>dir edit.pp /s
 Volume in drive C is Windows
 Volume Serial Number is 0C94-A215

 Directory of C:\devel\fpc\3.0.4\demo\win32

15-03-2009  13:05            13.031 edit.pp
               1 File(s)         13.031 bytes

 Directory of C:\devel\fpc\3.2.0\demo\win32

28-02-2020  17:30            12.572 edit.pp
               1 File(s)         12.572 bytes

 Directory of C:\devel\fpc\3.2.0RC1\demo\win32

15-03-2009  12:05            13.031 edit.pp
               1 File(s)         13.031 bytes

Bart
Title: Re: edit.pp - What Kind of Project ?
Post by: winni on September 26, 2020, 12:55:54 am
Hi!

I also beg to differ:

Neither in the dir fpcsrc nor in fpc

But I am on Linux.
Seems that the Linux users are discriminated. Again .....
( Don't take that too serious )

Ok, if that is Win-only that's OK.

Winni
Title: Re: edit.pp - What Kind of Project ?
Post by: pmckone on September 26, 2020, 03:06:20 am
I know this is the old-fashioned Windows programming method.  My intent is to add a Windows GUI to the old Turbo chess program.  I probably should use the component libraries.  I'm guessing someone from Borland did this a long time ago, because there a C++ version of this program that shipped with CBuilder that does use component libraries.  Thanks for your replies.  Sorry I didn't mention that the source is in the "demo" directory.
Title: Re: edit.pp - What Kind of Project ?
Post by: PascalDragon on September 26, 2020, 09:58:30 am
Neither in the dir fpcsrc nor in fpc

But I am on Linux.
Seems that the Linux users are discriminated. Again .....

It's part of the demos (https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/demo/?root=fpcbuild) (which is part of the fpcbuild repository) and it's included with our standard Linux installer inside the demo.tar.gz and will be installed if you answer y on the question to install demos. That said it is located in the win32 subfolder.

It's also contained in our standalone Windows installer.
Title: Re: edit.pp - What Kind of Project ?
Post by: dbannon on September 26, 2020, 10:31:32 am
yep -

Code: Bash  [Select][+][-]
  1. dbannon@dell:~/Pascal/Packages$ find ../../bin/FPC/ -name edit.pp
  2. ../../bin/FPC/fpc-3.2.0-x86_64-linux/y/win32/edit.pp

My guess is that I answered 'y' for yes when asked if I wanted the demos !

:-)

Davo
TinyPortal © 2005-2018