[fpc-pascal] Re: Accessing USB HID from Lazarus programs?

2011-03-20 Thread Bo Berglund
I posted this on the lazarus list but they suggested to send it to the FPC list instead in order to possibly get better answers... On Sun, 20 Mar 2011 10:04:28 -0500, Bo Berglund wrote: >I need to create a program using Lazarus/FPC to access a data >collection device built using a PIC24F series

Re: [fpc-pascal] Re: Converting code from C++ to FP....

2011-03-20 Thread Micha Nelissen
Jorge Aldo G. de F. Junior wrote: const has the same effect as fpc const before a parameter, This is not true. double* SX0 is the same as double *SX0 or double * SX0 so this becomes const SX0 : pdouble (ugly pointer as array Cishism) No! 'const double * X' in C makes the pointed-to data c

Re: Re: [fpc-pascal] com port using prolific driver

2011-03-20 Thread johnelee1944
Paul and other responders, thanks. Think I'ma bit clearer how to do it now. q1) My com device is an energy monitor that sends a block of xml data, 1000 bytes or so, every 6 secs. Guess this means I might be better 'using getbuf or whatever it's called in synaser, rather than single char at a

[fpc-pascal] FPC 2.4.2 i386 MacOS: Inc broken for Int64's

2011-03-20 Thread Tobias Giesen
Hello, my app uses the built-in Inc function to add Int64 variables. Unfortunately, they are treated as UInt32, so the values are truncated as 32 bit values. Wow! That is an impressive bug. I assume it is known? What's the recommendation, which FPC version should I use? Could it be an incompatib

Re: [fpc-pascal] Re: Accessing USB HID from Lazarus programs?

2011-03-20 Thread Henry Vermaak
On 20 March 2011 16:35, Bo Berglund wrote: >>I need to create a program using Lazarus/FPC to access a data >>collection device built using a PIC24F series microprocessor with >>built-in USB support. The firmware makes the PIC processor register as >>a Human Interface Device (HID) class USB device.

Re: [fpc-pascal] com port using prolific driver

2011-03-20 Thread Luca Olivetti
Al 20/03/11 19:47, En/na johnelee1...@googlemail.com ha escrit: > Paul and other responders, thanks. Think I'm a bit clearer how to do it now. > > q1) My com device is an energy monitor that sends a block of xml data, 1000 > bytes or so, every 6 secs. Guess this means I might be better 'using get

Re: [fpc-pascal] FPC 2.4.2 i386 MacOS: Inc broken for Int64's

2011-03-20 Thread Jonas Maebe
On 20 Mar 2011, at 20:41, Tobias Giesen wrote: > my app uses the built-in Inc function to add Int64 variables. > Unfortunately, they are treated as UInt32, so the values are > truncated as 32 bit values. > > Wow! That is an impressive bug. I assume it is known? It has been fixed in svn trunk (

[fpc-pascal] Re: Accessing USB HID from Lazarus programs?

2011-03-20 Thread Bo Berglund
On Sun, 20 Mar 2011 19:47:28 +, Henry Vermaak wrote: >On 20 March 2011 16:35, Bo Berglund wrote: >>I need to create a program using Lazarus/FPC to access a data >>collection device built using a PIC24F series microprocessor with >>built-in USB support. The firmware makes the PIC processor re