Re: [Lazarus] WSRegister error on console application

2009-05-04 Thread Martin Friebe
Paul Ishenin wrote: > 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 := PCha

Re: [Lazarus] WSRegister error on console application

2009-05-04 Thread Paul Ishenin
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: > Er

Re: [Lazarus] Lazarus IDE crash on Centos 5.3 x86

2009-05-04 Thread Carlos German Tejero
Finish i can solve my problem. Lazarus 0.9.27 r19639 from daily snapshot, work in a local gnome session on the server, but not work in a gnome session started from a sunray thin client. Lazarus 0.9.26.2 work well on both. Thanks to all!! -- Carlos Germán Tejero ___

Re: [Lazarus] Editor font disturbed after upgrading to r19705

2009-05-04 Thread Bart
@Paul: Something else I noticed. Can there be a relationship between this and bug http://bugs.freepascal.org/view.php?id=13062 (IDE prints garbage on screen)? I ask this because I noticed that the broken version produced lots of garbage on the screen, and after your fix, this has been reduced (no

Re: [Lazarus] WSRegister error on console application

2009-05-04 Thread Vincent Snijders
Andrea Mauri schreef: > If I add Interfaces to the main unit the project compiles fine. But is > it ok to add interfaces to a console application? If it can be prevented, I would not do it, but it is OK. Note that it would require a display on linux, for example. > I need two LCL unit, LCLtyp

Re: [Lazarus] WSRegister error on console application

2009-05-04 Thread Andrea Mauri
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"

Re: [Lazarus] WSRegister error on console application

2009-05-04 Thread Paul Ishenin
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. The

Re: [Lazarus] WSRegister error on console application

2009-05-04 Thread Andrea Mauri
If I add Interfaces to the main unit the project compiles fine. But is it ok to add interfaces to a console application? I need two LCL unit, LCLtype and LCLintf. I use this unit in order to get the mac address on windows (using netapi32.dll). I found a delphi code and I modified it in order to