Re: [fpc-devel] Some more THandle problems

2010-11-21 Thread Sven Barth
On 20.11.2010 14:13, Sergei Gorelkin wrote: Sven Barth пишет: Hello together! While getting SysUtils and Classes to compile for Native NT I've stumbled upon some more spots where Handle=LongInt/LongWord is assumed. 1. In objpas/sysutils/filutilh.inc and its implementation

Re: [fpc-devel] Some more THandle problems

2010-11-21 Thread Marco van de Voort
In our previous episode, Florian Kl?mpfl said: At least a lot of code assumes that. See e.g. FileRead and friends. Windows has a system where all handles are of the same type, but other systems might not. As soon as we find such a system, we can still introduce a TFileHandle. That was

[fpc-devel] Some more THandle problems

2010-11-20 Thread Sven Barth
Hello together! While getting SysUtils and Classes to compile for Native NT I've stumbled upon some more spots where Handle=LongInt/LongWord is assumed. 1. In objpas/sysutils/filutilh.inc and its implementation objpas/sysutils/fina.inc the GetFileHandle functions are defined with return

Re: [fpc-devel] Some more THandle problems

2010-11-20 Thread Sergei Gorelkin
Sven Barth пишет: Hello together! While getting SysUtils and Classes to compile for Native NT I've stumbled upon some more spots where Handle=LongInt/LongWord is assumed. 1. In objpas/sysutils/filutilh.inc and its implementation objpas/sysutils/fina.inc the GetFileHandle functions are

Re: [fpc-devel] Some more THandle problems

2010-11-20 Thread Marco van de Voort
In our previous episode, Sergei Gorelkin said: 2. THandleStream has a field FHandle which is defined as Integer. Now this handle is filled either by the constructor which takes an Integer as well or by e.g. TFileStream which gets its handle from FileOpen/FileCreate. Those return a

Re: [fpc-devel] Some more THandle problems

2010-11-20 Thread Sergei Gorelkin
Marco van de Voort пишет: In our previous episode, Sergei Gorelkin said: 2. THandleStream has a field FHandle which is defined as Integer. Now this handle is filled either by the constructor which takes an Integer as well or by e.g. TFileStream which gets its handle from FileOpen/FileCreate.

Re: [fpc-devel] Some more THandle problems

2010-11-20 Thread Florian Klämpfl
Am 20.11.2010 14:30, schrieb Marco van de Voort: In our previous episode, Sergei Gorelkin said: 2. THandleStream has a field FHandle which is defined as Integer. Now this handle is filled either by the constructor which takes an Integer as well or by e.g. TFileStream which gets its handle