[fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Bo Berglund
I am porting a Delphi class to FPC and I ran into a problem concerning TList: FCommands.Sort(CommandCompare); This generates an error: Error: Wrong number of parameters specified for call to "CommandCompare" This call works just fine in Delphi and I have no clue as to why it happens in FPC.

Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Mattias Gaertner
On Tue, 20 Oct 2015 08:31:57 +0200 Bo Berglund wrote: > I am porting a Delphi class to FPC and I ran into a problem concerning > TList: > > FCommands.Sort(CommandCompare); > > This generates an error: > Error: Wrong number of parameters specified for call to >

Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Michael Van Canneyt
On Tue, 20 Oct 2015, Bo Berglund wrote: I am porting a Delphi class to FPC and I ran into a problem concerning TList: FCommands.Sort(CommandCompare); This generates an error: Error: Wrong number of parameters specified for call to "CommandCompare" This call works just fine in Delphi and I

Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Bo Berglund
On Tue, 20 Oct 2015 08:31:57 +0200, Bo Berglund wrote: Thanks! FCommands.Sort(@CommandCompare); works fine, at least no longer any compile errors in this unit. Now in another unit and wound up with lots of Windows specific stuff I really do not need, so I am busy

[fpc-pascal] Lazarus implementation of TListView etc?

2015-10-20 Thread Bo Berglund
I want to konow why comctrls is not found by Lazarus and hence the definitions of a lot of objects in my Delphi code ported to FPC generate errors? I have googled extensively on "lazarus TListView" "lazarus comctrls" etc and I wind up on lazarus wiki pages explaining the properties of the objects.

Re: [fpc-pascal] Lazarus implementation of TListView etc?

2015-10-20 Thread Bo Berglund
On Tue, 20 Oct 2015 18:47:49 +0200, Bo Berglund wrote: >I want to konow why comctrls is not found by Lazarus and hence the >definitions of a lot of objects in my Delphi code ported to FPC >generate errors? Sorry, wrong list. Heading to Lazarus list now... -- Bo Berglund