Re: [Lazarus] WSRegister error on console application

2009-05-05 Thread Andrea Mauri
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 :=

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

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. Then

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, LCLtype

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: Error:

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 := PChar(@Adapter);

Re: [Lazarus] WSRegister error on console application

2009-04-25 Thread Andrea Mauri
I still have to check it, I will try to use only the non visual units. I will post how I will solve it. andrea Andrea Mauri ha scritto: thanks to all, andrea Mattias Gaertner ha scritto: On Fri, 24 Apr 2009 19:22:35 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote:

[Lazarus] WSRegister error on console application

2009-04-24 Thread Andrea Mauri
Dear all, I have a cross-platform console application project. The project were compiled with no problem but actually when I compile it I get the following errors (WinXp lazarus svn fpc 2.2.4). I got this error both with fpc 2.2.2 and fpc 2.2.4, I don't know exactly when this error appears (the

Re: [Lazarus] WSRegister error on console application

2009-04-24 Thread Vincent Snijders
Andrea Mauri schreef: Dear all, I have a cross-platform console application project. The project were compiled with no problem but actually when I compile it I get the following errors (WinXp lazarus svn fpc 2.2.4). I got this error both with fpc 2.2.2 and fpc 2.2.4, I don't know exactly

Re: [Lazarus] WSRegister error on console application

2009-04-24 Thread Mattias Gaertner
On Fri, 24 Apr 2009 19:22:35 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote: Andrea Mauri schreef: Dear all, I have a cross-platform console application project. The project were compiled with no problem but actually when I compile it I get the following errors (WinXp lazarus

Re: [Lazarus] WSRegister error on console application

2009-04-24 Thread Andrea Mauri
thanks to all, andrea Mattias Gaertner ha scritto: On Fri, 24 Apr 2009 19:22:35 +0200 Vincent Snijders vincent.snijd...@gmail.com wrote: Andrea Mauri schreef: Dear all, I have a cross-platform console application project. The project were compiled with no problem but actually

Re: [Lazarus] WSRegister error on console application

2009-04-24 Thread Vincent Snijders
Andrea Mauri schreef: thanks to all, How did you solve it? Vincent ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus