Solved, thanks to all. Now I use just Windows unit (without interfaces). andrea
Paul Ishenin ha scritto: > Andrea Mauri wrote: > >> I tried it (replaced LCLType and LCLintf with Windows), now I got an >> error on these lines: >> NCB.ncb_command := Char(NCBENUM); >> NCB.ncb_command := Char(NCBRESET); >> NCB.ncb_command := Char(NCBASTAT); >> NCB.ncb_buffer := PChar(@Adapter); >> The error is: >> Error: Incompatible types: got "Char" expected "Byte" >> > > Well, you can replace Char by Byte. See yourself which solution is > better for you. > > Best regards, > Paul Ishenin. > > _______________________________________________ > Lazarus mailing list > Lazarus@lazarus.freepascal.org > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Dr. Andrea Mauri, PhD Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:andrea.mauri...@gmail.com http://michem.disat.unimib.it/chm/ _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus