Recent

Author Topic: Scite and Lazarus fun the old fashioned way  (Read 8310 times)

ynys

  • New member
  • *
  • Posts: 7
Scite and Lazarus fun the old fashioned way
« on: August 17, 2010, 02:16:22 am »
Lazarus is great for building forms and creating gui applications. But I still enjoy dos style ide programming – the code can be attached to a button on a form later. So armed with lazarus, scite and the runtime library pdf: stick the code in scite ask it to compile it (using fpc.exe) check any mistakes with  acrobat and the rtl.pdf then ask scite it to run it. Adjust until right and be left with the source pas file and the exe utility (which u may then to decide to add to lazarus form to make it gui app)

Time well enjoyed. Anyone got other similar approach?

ynys

  • New member
  • *
  • Posts: 7
Re: Scite and Lazarus fun the old fashioned way
« Reply #1 on: August 21, 2010, 03:32:04 am »
Another text editor/ide which works quite well with lazarus/fp is crimson editor (also called emerald editor).

It doesn't automatically set itself up to compile fpc programs but the fairly simple steps u have to take are outlined at

http://www.crimsoneditor.com/english/docs/howtos.html

- How to compile C/C++ source code
- How to execute binary executable file

Will explain.
To run the program Tools F10 (msdos shell) and type program name works well

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7495
Re: Scite and Lazarus fun the old fashioned way
« Reply #2 on: August 21, 2010, 07:56:32 am »
But I still enjoy dos style ide programming – the code can be attached to a button on a form later. So armed with lazarus, scite and the runtime library pdf:

Try the textmode IDE "fp.exe", and rtl.chm (from www.stack.nl/~marcov/doc-chm.zip )

Dos style IDE experience guaranteed  >:D

ynys

  • New member
  • *
  • Posts: 7
Re: Scite and Lazarus fun the old fashioned way
« Reply #3 on: August 22, 2010, 01:07:07 am »
Thanks
I have used fp.exe in the past - very turbo pascal ide like
Great
But currently fp.exe does not seem to run without giving something like: NTVDM CPU has encountered an illegal instructions . . .

Leledumbo

  • Hero Member
  • *****
  • Posts: 8111
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Scite and Lazarus fun the old fashioned way
« Reply #4 on: August 23, 2010, 10:48:00 am »
Quote
But currently fp.exe does not seem to run without giving something like: NTVDM CPU has encountered an illegal instructions . . .
Does it happen on DOS only? It doesn't on Win32/Lin32

ynys

  • New member
  • *
  • Posts: 7
Re: Scite and Lazarus fun the old fashioned way
« Reply #5 on: August 23, 2010, 11:42:19 pm »
Hi a couple of interesting things here

I am using XP sp3 so DOS is more correctly the command line window I suppose.

Lazarus IDE problem - solution I was using the komodo antivirus suite when I removed this and replaced it with a different antivirus program (I have digital defender installed at the moment), the problem went away.

The fp.exe ide which has been givining problems (under this xp installation) is the one take from the current DOS version of free pascal.
(\bin\go32v2\fp.exe)

After searching my hard disk, I found a version of fp.exe which came with free pascal compiler 1.10. This runs OK. I placed it in the folder:

C:\lazarus\fpc\2.2.4\bin\i386-win32

However it fails to compile since it cant find the basic units.
Maybe this can be set up to find the units?


marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7495
Re: Scite and Lazarus fun the old fashioned way
« Reply #6 on: August 25, 2010, 07:35:43 am »

The fp.exe ide which has been givining problems (under this xp installation) is the one take from the current DOS version of free pascal.
(\bin\go32v2\fp.exe)

On Windows 2000/XP and +, use the windows, not dos version of the IDE.

On Win9X people used to use the dos version because it felt faster. Haven't tested the windows IDE under win9x in 5-6 years though. (iow, since I threw away the last win9x)

ynys

  • New member
  • *
  • Posts: 7
Re: Scite and Lazarus fun the old fashioned way
« Reply #7 on: August 26, 2010, 12:27:32 am »
Yeah
Got there at last - thanks
Lazarus appears to come with fpw version 2.2.4 and it is important to use the ide (fp.*) that comes with this version of freepascal windows (The 2.4 ide didn't work).

Nice for rattling off programs old style
Regards