Recent

Author Topic: Is it possible to compile an old Pascal-program ( DOS ) ?  (Read 6405 times)

finalist

  • Jr. Member
  • **
  • Posts: 99
Is it possible to compile an old Pascal-program ( DOS ) ?
« on: April 02, 2011, 03:32:55 pm »
I hope it is possible under Lazarus 32 bit ....
Thank you !

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Is it possible to compile an old Pascal-program ( DOS ) ?
« Reply #1 on: April 02, 2011, 03:39:20 pm »
Use directive:
Code: [Select]
{$mode TP}
in your code.

And see: http://www.freepascal.org/port.var
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

finalist

  • Jr. Member
  • **
  • Posts: 99
Re: Is it possible to compile an old Pascal-program ( DOS ) ?
« Reply #2 on: April 02, 2011, 04:02:27 pm »
Code: [Select]
PROGRAM Q;
{$mode TP} // I did implement the directive

USES Crt,Dos,Printer;
VAR
GGG1,GGG3,GGG4,D1,M1,G1,D3,M3,G3,M4,G4:word;
Ch,n,j :byte;
name1,ime :string[30];
Ans :char;
DayofWeek,D4 :word;     

Wat about the Project ? - what kind of project to select at the begin:
- Application;
- Program;
- Console application;
- ........
?

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Is it possible to compile an old Pascal-program ( DOS ) ?
« Reply #3 on: April 02, 2011, 04:09:00 pm »
IMO Program.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

finalist

  • Jr. Member
  • **
  • Posts: 99
Re: Is it possible to compile an old Pascal-program ( DOS ) ?
« Reply #4 on: April 02, 2011, 04:16:25 pm »
These are all options:
- Application;
- Program;
- Console application;
- Library;
- Simple CGI Application;
- FPC Unit Console Test Application;
- FPC Unit Test Application;
- Daemon (service) application;
- CGI Application;
- Custom CGI Application;
- Apache Module.

T-bear

  • Full Member
  • ***
  • Posts: 160
Re: Is it possible to compile an old Pascal-program ( DOS ) ?
« Reply #5 on: April 02, 2011, 05:15:02 pm »
try console program, or something similar.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Is it possible to compile an old Pascal-program ( DOS ) ?
« Reply #6 on: April 02, 2011, 06:28:01 pm »
No, just simply "program", console application is still LCL-based AFAIk.

 

TinyPortal © 2005-2018