From: Jano Svitok Date: 2007-11-28T20:00:19+09:00 Subject: Re: Run ruby from MFC On Nov 28, 2007 10:51 AM, Surezu Shanmu wrote: > Hi all, > > I would like to run Ruby from my MFC application! IF it is > possible? If yes,let me know. > Now i'm using visual studio 2005.. Depends on what do you want with ruby. If you just need to run a standalone script, than it more or less doesn't depend on from where you call it (i.e. run using a new process). If you want to embed ruby in your program (to be able to script etc.) then it's obviously harder but doable. It's not a good idea to mix your program compiled by VS2005 and ruby compiled by VC6. Therefore, you have to compile ruby yourself. It's not a problem, it's quite easy, and from (IIRC) 1.8.6. it should work. The problem is, that you have to compile yourself all the extensions that you plan to use with your ruby. That means 1. your ruby will not be compatible with those prebuilt gems from rubyforge, 2. some of the extensions require pretty involved process to compile (that's what people write, I haven't compiled the extensions myself). We're talking about openssl, zlib, tk, etc. here. In any case, ruby compiled by vs2005 should be possible. Good luck! J.