Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-21 Thread Paul Breneman
On 07/20/2016 10:29 PM, Marc Santhoff wrote: ... Depending on your needs I'd suggest using a USB-to-serial-Adapter or similar. They are cheap and well supported (e.g. using CP2102). As an alternative FTDI has some nice USB-to-anything (including parallel) chips and they sell modules with mil spac

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-21 Thread Marc Santhoff
On Do, 2016-07-21 at 08:39 -0500, Paul Breneman wrote: > You can do *everything* via USB. :) I joked about this several years ago > but then went searching and found USB to ISA slot and USB to PCI slot > adapters. Folks use these to run expensive data acquisition cards. https://www.youtube.com

Re: [fpc-pascal] CGI, Handle Exceptions

2016-07-21 Thread Marcos Douglas
On Wed, Jul 20, 2016 at 10:40 PM, leledumbo wrote: > > > I need to know the Request instance too, to treat the exception properly. > > As Michael has pointed out, the current design has no access to the TRequest > instance. My alternative solution would be to create descendant Exception > class th

[fpc-pascal] Weird string behavior

2016-07-21 Thread Santiago A.
Hello: I'm working on windows XP, FPC 3.0.0 from stable Lazarus 1.6. I've come across this issue: When I concatenate two strings in UTF8 they are converted to ansi (Win-1252) . A bug? Am I missing something? I have attached a demo. -- Saludos Santiago A. program testconvertstr; //-

Re: [fpc-pascal] Weird string behavior

2016-07-21 Thread Bart
On 7/21/16, Santiago A. wrote: > I've come across this issue: When I concatenate two strings in UTF8 they > are converted to ansi (Win-1252) . You have declared all string variables as plain "string", which is the same as AnsiString(CP_ACP). So all string variables have the encoding of your acti

Re: [fpc-pascal] Initialization of packed record local variables?

2016-07-21 Thread Bo Berglund
On Mon, 18 Jul 2016 23:30:47 +0200 (CEST), Michael Van Canneyt wrote: >> Are there other commands it does detect as initialization of the >> variable? > >not that I know of. > >you need to assign it a value, you can assign it default(yourtype) > OK, I did not know about the default keyword. Is