Re: [fpc-pascal] Serial Unit for Windows

2008-07-19 Thread Stephano
Zaher Dirkey wrote: bm_DCB_fRtsControl = $3000. It should be $2000. bm_DCB_fDtrControl = $30. It should be $20. DtrControl and RtsControl have double bits so it should be as mask in same struct.inc you can see function fDtrControl(var a : DCB) : DWORD; begin fDtrControl:=(a

Re: [fpc-pascal] Serial Unit for Windows

2008-07-19 Thread Stephano
Michael Van Canneyt wrote: > I looked at the unit the first time you posted it, but there is little I can do: I don't do serial programming. I think it is best if you contact someone who does serial programming directly, and ask them to test this unit. Michael. I will acquire some serial

Re: [fpc-pascal] Serial Unit for Windows

2008-07-19 Thread Zaher Dirkey
>>bm_DCB_fRtsControl = $3000. It should be $2000. >>bm_DCB_fDtrControl = $30. It should be $20. DtrControl and RtsControl have double bits so it should be as mask in same struct.inc you can see function fDtrControl(var a : DCB) : DWORD; begin fDtrControl:=(a.flags and bm_DCB

Re: [fpc-pascal] Serial Unit for Windows

2008-07-18 Thread Michael Van Canneyt
On Fri, 18 Jul 2008, Stephano wrote: > I posted the same a week ago in FPC-devel, and did not get any feedback. I am > posting the same here hoping to get some feedback :) > > I have made some modifications to the windows unit of Luis R. Hilario B. > in order to pave the way for cross-platform