Re: [fpc-pascal] Porting from Turbo Pascal to FPC

2020-04-30 Thread Markus Greim
Hello, I run Borland Pacal 7.01 in Dosemu / XdosEmu (don't use the 64bit binary) on Linux (Kernel 4.15, 64bit, Linux Mint 19.1, 16 CPUs...) here. Works fine, even the serial interface. At least for my experience, the printer doesn't work. So I "print" in a (shared) graphic file, and print the

Re: [fpc-pascal] Pascal Language Server

2020-04-30 Thread Ryan Joseph via fpc-pascal
Stuck on another code tools problem. I've been using code like this to find words at node offsets and this works well until there are $ifdefs in the file and then the text position getting offset and fail to return the correct identifiers. GetIdentifier(@Code.Source[Node.StartPos]); How should

Re: [fpc-pascal] Porting from Turbo Pascal to FPC

2020-04-30 Thread Alexander Grotewohl
Not really sure how you would adapt this to your setup, but I threw this together from a project I did previously. I've only tested it with the Windows 10 builtin XPS and PDF printers so I'm not sure how it will behave on a real printer. (Hopefully the attachment makes it through..) -- Alexand

Re: [fpc-pascal] Porting from Turbo Pascal to FPC

2020-04-30 Thread Tomas Hajny
On 2020-04-30 10:29, Elmar Haneke wrote: Am 29.04.20 um 10:42 schrieb Francisco Glover via fpc-pascal: Overt the years I have developed programs  in Turbo Pascal for student lab use, in which the student can easily send to an attached printer contents of the text or VGA graphics screens. These n

Re: [fpc-pascal] Porting from Turbo Pascal to FPC

2020-04-30 Thread Elmar Haneke
Am 29.04.20 um 10:42 schrieb Francisco Glover via fpc-pascal: > Overt the years I have developed programs  in Turbo Pascal for student > lab use, in which the student can easily send to an attached printer > contents of the text or VGA graphics screens. These no longer work on > Windows 10.  In sh

Re: [fpc-pascal] Converting http date back to TDateTime

2020-04-30 Thread Santiago A.
El 29/04/2020 a las 19:31, Zamrony P. Juhara via fpc-pascal escribió: Yes, it works if I remove timezone part from pattern as suggested by Santiago. This one works adatetime := scanDateTime(      'ddd, dd mmm hh:mm:ss',      'Tue, 28 Apr 2020 10:11:12 GMT'); So i guess, we must convert ti