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.

Ruby in C++

Never heard of it, installed it, this is interesting!

I've had a play with it. It seems I can only create either a ruby project or a c++ project in Visual Studio though. The website says "and other .NET languages can use Ruby code just as easily. " so there must be a way. I'll look into it, thanks!
 
You you can include the Ironruby.dll in a C++/C# project. The whole point of it is to provide a simple interface between the languages. Take Gemini for example, it is written in C# but uses IronRuby for reading and creating Ruby data.
 
%PROGRAMFILES%\IronRuby 1.1\Silverlight\bin

(The version may vary if you have 1.0)

You need to include IronRuby.dll, IronRuby.Libraries.dll, Microsoft.Scripting.dll. Microsoft.Dynamic does not need included, but it does need to be in the executing directory. If you are targeting your application for .NET 2.0 and using IronRuby 1.0, you will also need Microsoft.Scripting.Core.dll. Its not needed for 1.1, since the scripting core was merged with the system core in higher versions.
 

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