From: Michael Davis Date: 2002-01-04T17:51:03+09:00 Subject: [ruby-talk:30189] Win32API question regarding CreateWindow Has anyone successfully created a window using Win32API? The following runs but does not create the window. Does anyone know what I need to do to get this to work? Are there any working examples using CreateWindow? Any help is greatly appreciated. Here is an example: require 'Win32API' createwindow = Win32API.new('user32', 'CreateWindowEx', ['l', 'p', 'p', 'l', 'i', 'i', 'i', 'i', 'l', 'l', 'l', 'P'], 'l') print "createwindow:#{createwindow}\n" cw = createwindow.call(0, 'SysIpAddress32', 'Hello World', 0x40000000 | 0x10000000, 0, 0, 200, 100, 0, 0, 0, 0) print "cw:#{cw.inspect}\n" Michael Davis Database Architect and Senior Software Engineer, Seva Inc. Email: mdavis@sevainc.com