[fpc-pascal] help: converting windows API to linux
    Michael Van Canneyt 
    michael at freepascal.org
       
    Wed Apr  9 10:47:40 CEST 2008
    
    
  
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 platform. :(
You should make abstraction of what this unit tries to achieve; 
After that you can see how this can be done in a cross platform manner.
If you just try to re-implement the windows API calls with 'cross-platform'
ones, then you are bound to fail... (the createevent etc. is rather specific)
Michael.
    
    
More information about the fpc-pascal
mailing list