Very intermediate into programming and never done anything with visual basic, although if anyone could help me better understand the following I would be very greatful! In my ruby script I have require "dl" user32 = DL.dlopen(''user32'') actWindow = DL::CFunc.new(user32[''GetActiveWindow''],DL::TYPE_VOID, ''GetActiveWindow'') actWindow.call() which has wrong number of arguments, needs an array passed into it. actWindow.call([]) returns type nil I''m not sure what I should be passing into call method as the function is of DL::TYPE_VOID? GetActiveWindow - http://msdn.microsoft.com/en-us/library/windows/desktop/ms646292%28v=vs.85%29.aspx -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.