Windows API support
    Brian Rice 
    water at tunes.org
       
    Tue Jan  4 19:22:26 PST 2005
    
    
  
Cool; thank you. This is incorporated now. Attila, please check these 
changes when you get the chance, and the associated project file 
differences and comment/fix as you will.
On Jan 4, 2005, at 4:33 PM, Todd Fleming wrote:
> Here is my updated patch for Windows __stdcall support. I also 
> attached my VS 2003 project files 
> (slate/src/mobius/vm/platform/windows).
>
> Example use:
> [| l f |
>  l: (ExternalLibrary newNamed: 'User32').
>  f: (l lookup: 'MessageBoxA').
>  f argumentsFormat:
>  {
>    ExternalMethod ArgumentFormat Int.
>    ExternalMethod ArgumentFormat Bytes.
>    ExternalMethod ArgumentFormat Bytes.
>    ExternalMethod ArgumentFormat Int.
>  }.
>  f callFormat: ExternalMethod CallFormat Std.
>  (f applyTo: {0 'Hello from Slate!\0' 'My Dialog\0' 0}).
> ] do.
>
> The call format defaults to cdecl.
>
> Todd
--
Brian T. Rice
LOGOS Research and Development
http://tunes.org/~water/
    
    
More information about the Slate
mailing list