API
Posted: Fri Apr 01, 2016 5:18 pm
If anyone knows...
Why does triggering this Ruby code with a button work in design mode but when I compile it to a standalone exe it doesn't work?
Why does triggering this Ruby code with a button work in design mode but when I compile it to a standalone exe it doesn't work?
Code: Select all
require 'win32API'
api = Win32API.new('user32', 'MessageBox', ['L', 'P', 'P', 'L'], 'I')
message = "This is a sample Windows message box generated using Win32API"
title = "Win32API from Ruby"
api.call(0,message,title,0)