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 :=
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
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
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
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
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:
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);
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:
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
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
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
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
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
13 matches
Mail list logo