Re: [fpc-pascal] Reading exe version info on Linux?

2013-03-20 Thread Reinier Olislagers
On 20-3-2013 21:30, Michael Van Canneyt wrote: > On Wed, 20 Mar 2013, Reinier Olislagers wrote: >> The program below works fine on Windows for reading e.g. info on >> explorer.exe >> It fails on Linux (FPC trunk x64, compiled 2013/03/14) when testing with >> explorer.exe: > It should work as is; >

[fpc-pascal] How To write an enumerator for trees

2013-03-20 Thread Xiangrong Fang
Hi, I would like to add enumerator support for my TTreap implementation ( https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas). The tree nodes are defined as: PNode = ^TNode; TNode = record Count: Cardinal; Key: TKey; Value: TValue;

Re: [fpc-pascal] Reading exe version info on Linux?

2013-03-20 Thread Michael Van Canneyt
On Wed, 20 Mar 2013, Reinier Olislagers wrote: The program below works fine on Windows for reading e.g. info on explorer.exe It fails on Linux (FPC trunk x64, compiled 2013/03/14) when testing with explorer.exe: Going to read version resource for /tmp/explorer.exe An unhandled exception occur

[fpc-pascal] Reading exe version info on Linux?

2013-03-20 Thread Reinier Olislagers
The program below works fine on Windows for reading e.g. info on explorer.exe It fails on Linux (FPC trunk x64, compiled 2013/03/14) when testing with explorer.exe: Going to read version resource for /tmp/explorer.exe An unhandled exception occurred at $00443607: EResNotFound: Resource "1"