[Lazarus] WSRegister error on console application
Andrea Mauri
andrea.mauri.75 at gmail.com
Mon May 4 11:22:45 CEST 2009
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 at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
More information about the Lazarus
mailing list