# Examples of integrating Ruby interpreter into C++ app?

**URL:** <https://rubytalk.org/t/examples-of-integrating-ruby-interpreter-into-c-app/3575>\
**Category:** ruby-talk\
**Created:** [12 December 2002 11:48 UTC](https://rubytalk.org/t/examples-of-integrating-ruby-interpreter-into-c-app/3575 "2002-12-12T11:48:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coma\_Killen](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Coma\_Killen](https://rubytalk.org/u/Coma_Killen)\
**Post date:** [12 December 2002 11:48 UTC](https://rubytalk.org/t/examples-of-integrating-ruby-interpreter-into-c-app/3575/1 "2002-12-12T11:48:57Z")

</div>

Hi,

Are there any publically available examples (open source or  
experience reports or whatever related…) on how to integrate  
a Ruby interpreter into a C++ app?

I’d like to script and extend an existing C++ app (Windows and  
MS Vis Studio) with Ruby since it will be more productive  
and fun. Any info, success stories or failure stories that relates  
to this would be interesting.

Thanks in advance,

Karsten

> **···**
>
> –  
> [http://fastmail.fm](http://fastmail.fm) - Same, same, but different…

---

<div class="post-metadata">

**Author:** ![Phlip5](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Phlip5](https://rubytalk.org/u/Phlip5)\
**Post date:** [12 December 2002 15:05 UTC](https://rubytalk.org/t/examples-of-integrating-ruby-interpreter-into-c-app/3575/2 "2002-12-12T15:05:56Z")

</div>

coma\_killen@fastmail.fm wrote:

> Hi,
> 
> Are there any publically available examples (open source or  
> experience reports or whatever related…) on how to integrate  
> a Ruby interpreter into a C++ app?
> 
> I’d like to script and extend an existing C++ app (Windows and  
> MS Vis Studio) with Ruby since it will be more productive  
> and fun. Any info, success stories or failure stories that relates  
> to this would be interesting.

I have extended a WTL text editor sample called kPad by Konstantin  
Boukreev. E-mail me privately and I’l send you a source code drop. The  
program’s turning wicked.

Incidentally, the Powers that Be decree I should have used ActiveX Script  
and ActiveRubyScript (or whatever). I have no idea how to do that, because  
I made the mistake of trying to read MS’s sample code in that area once.

> **···**
>
> –  
> Phlip  
> [http://c2.com/cgi/wiki?SheChangeDesignInTheDatabase](http://c2.com/cgi/wiki?SheChangeDesignInTheDatabase)  
> – “He who has had, has been, but he who hasn’t been,  
> has been had” - Stanislaw Lem –
