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"
Regards, andrea Paul Ishenin ha scritto: > Andrea Mauri wrote: > >> If I add Interfaces to the main unit the project compiles fine. But is >> it ok to add interfaces to a console application? >> {$IFDEF MSWINDOWS} >> , snmp, nb30, dynlibs, LCLtype, LCLintf, LCLProc >> > > > It will be enough for you to replace LCLType, LCLIntf by Windows unit. > Then you can remove Interfaces dependency (maybe LCLProc depends on > Interfaces too). > > Best regards, > Paul Ishenin. > > _______________________________________________ > Lazarus mailing list > Lazarus@lazarus.freepascal.org > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > > _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus