Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[resolved] Quick Question- About using .dll's

Seto

Member

When Using the following piece of script
Code:
  def self.function(*args)
    API.call(['.dll', 'function', 'PPPPP', 'L'], args)
  end
 
How to I locate/show ruby where the .dll is? I have tried typing out the path but that didnt work. Any ideas?
 

e

Sponsor

You can input an absolute path (i.e.: "C:\Documents and Settings\bob\file.dll", just remember that between double quotes ruby needs double blackslashes so the above should be "C:\\Documents and Settings\\bob\\file.dll") or a relative path which is the game's project folder.

API.call(["C:\\Documents and Settings\\aDLL.dll", "function name", 'ARGUMENTS', 'RETURN'], args)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top