Re: [fpc-pascal] help: converting windows API to linux

2008-04-09 Thread Marco van de Voort
> > You should rewrite the whole unit in a cross-platform manner. > > Is it possible? There is no general rule. Sometimes you'd have to rewrite significant parts, sometimes it is substituting a few calls. First try to define what abstract functionality you exactly use, instead of what you use on

Re: [fpc-pascal] help: converting windows API to linux

2008-04-09 Thread Graeme Geldenhuys
Bee wrote: You should rewrite the whole unit in a cross-platform manner. Is it possible? I read somewhere that the behavior API of Windows is Yes it's possible, but nobody said it would be easy. :-) I've done this a few times before. IBM's website had some good documentation on porting Wi

Re: [fpc-pascal] help: converting windows API to linux

2008-04-09 Thread Michael Van Canneyt
On Wed, 9 Apr 2008, Bee wrote: > > You should rewrite the whole unit in a cross-platform manner. > > Is it possible? I read somewhere that the behavior API of Windows is pretty > much different to API of Linux (and other uni*x platform). Maybe I'll end up > writing a specific unit for each plat

Re: [fpc-pascal] help: converting windows API to linux

2008-04-09 Thread Bee
You should rewrite the whole unit in a cross-platform manner. Is it possible? I read somewhere that the behavior API of Windows is pretty much different to API of Linux (and other uni*x platform). Maybe I'll end up writing a specific unit for each platform. :( -Bee- has Bee.ography at: http

Re: [fpc-pascal] help: converting windows API to linux

2008-04-09 Thread Michael Van Canneyt
On Wed, 9 Apr 2008, Bee wrote: > Hi all, > > I've been trying to convert a Delphi unit to FPC. The problem is the unit > utilizes lots of low level windows APIs, such as: VirtualProtect, CreateEvent, > CloseHandle, etc. Due my lack of linux low level API knowledge, I hope someone > here could s

[fpc-pascal] help: converting windows API to linux

2008-04-09 Thread Bee
Hi all, I've been trying to convert a Delphi unit to FPC. The problem is the unit utilizes lots of low level windows APIs, such as: VirtualProtect, CreateEvent, CloseHandle, etc. Due my lack of linux low level API knowledge, I hope someone here could show me where to find a complete guide abo