Recent

Author Topic: trying to compile old source code (Satellite Tracking Software)  (Read 1753 times)

jamie

  • Hero Member
  • *****
  • Posts: 3543
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #30 on: July 14, 2020, 12:44:37 am »
using the original characters issued in the program he can use the lconvEncoding and it will generate the proper UTF8..
but I guess you can also do it the hard way too  :D
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 3543
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #31 on: July 14, 2020, 01:56:01 am »
attached is a program that is meant to run in console mode ..

I made a CRT form to run it in windows..

but you look at the CRTFORM code and other items to see what it looks like. I don't think I used anything that is windows specific but who knows I could of..
The only true wisdom is knowing you know nothing

juanirias

  • Jr. Member
  • **
  • Posts: 58
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #32 on: July 14, 2020, 03:18:09 am »
Thanks!

I cannot compile, because I don't have Graph unit ?!

where I can get ?

regards, JUAN

jamie

  • Hero Member
  • *****
  • Posts: 3543
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #33 on: July 14, 2020, 10:57:43 pm »
You are on a unix machine. I am windering if this will even work ?

These program is a Wnidows GUI program. The idea was to load up Lazarus and then load this into your system using what ever you use for the Linux port of GUI code.

 But in any case, looking in the files of the compiler I see in the Source/Packages/Graph/Unix
etc

 But I don't think this will be the only error you will encounter since there are more UNITS there that will most likely fail the same way..


 If you look at the code in the WriteString method of the TForm you can then see what I did as for taking a RawByteString to be used as the source for the string output..
 
 each Character which will only be single byte types will get converted to a UTF8 string using the lconvEncoding function. that would be the string you actually print to console.

 In my example I printed it to a TImage which is being used as the SCREEN …
The only true wisdom is knowing you know nothing

cai

  • New Member
  • *
  • Posts: 17
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #34 on: July 15, 2020, 05:01:22 am »
everything is old, so you need the old version FPC. support 16bit

juanirias

  • Jr. Member
  • **
  • Posts: 58
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #35 on: July 15, 2020, 05:19:43 am »
Dear jamie,

Thanks for the deference of helping me authentically!

Now the program is working well


Kind regards, JUAN
« Last Edit: July 15, 2020, 05:22:10 am by juanirias »

Thaddy

  • Hero Member
  • *****
  • Posts: 10492
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #36 on: July 15, 2020, 08:40:53 am »
everything is old, so you need the old version FPC. support 16bit
What do you mean? For FPC the 16 bit version is actually brand new  :D
It is introduced in 3.2.0
https://wiki.freepascal.org/FPC_New_Features_3.2.0#Support_for_the_i8086-win16_.2816-bit_Windows.29_target
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

PascalDragon

  • Hero Member
  • *****
  • Posts: 2156
  • Compiler Developer
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #37 on: July 15, 2020, 09:38:26 am »
everything is old, so you need the old version FPC. support 16bit
What do you mean? For FPC the 16 bit version is actually brand new  :D
It is introduced in 3.2.0
https://wiki.freepascal.org/FPC_New_Features_3.2.0#Support_for_the_i8086-win16_.2816-bit_Windows.29_target

*sigh* Thaddy, please read that again. Support for Win16 is added in 3.2.0. Support for i8086-msdos was added in 3.0.0.

Thaddy

  • Hero Member
  • *****
  • Posts: 10492
Re: trying to compile old source code (Satellite Tracking Software)
« Reply #38 on: July 15, 2020, 10:16:38 am »
@PascalDragon
That support was incomplete at least and has substantially improved.
@cai
I understood you were referring to a windows platform, not plain dos.
When you ask a question that is actually answered in the documentation, you are either lazy or a moron.

 

TinyPortal © 2005-2018