Code Review: Win32APIPlatformCheck

tfpt review “/shelveset:Win32APIPlatformCheck;REDMOND\tomat”
Comment :
Adds Win32 platform check to Win32API.rb.

Tomas

Ok. That gets me a little bit further.
gems use the tty? method on IO. which in turn calls

    [DllImport("kernel32")]
    private extern static IntPtr GetStdHandle(int nStdHandle);

    [DllImport("kernel32")]
    private extern static int GetFileType(IntPtr hFile);

obviously kernel32 doesn’t exist. Will look at making finding the unix
equivalent for that.
But Win32Api does behave properly now


Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)

On Sat, Oct 3, 2009 at 10:55 PM, Tomas M. <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs