From: Ben Giddings Date: 2003-09-19T08:43:07+09:00 Subject: Re: Embedded Ruby in a MSVC++ project? Lee Fisher wrote: > Visual Studio has an SDK to interface to the IDE, for doing tool > plugins, etc. I think you misunderstand, I don't want to modify the IDE at all, I want to embed Ruby in my program which is compiled using the IDE. What I meant when I said that it was tied to that environment was that it uses a lot of Microsoftisms in the code and other things that make it unportable code. So, I'm stuck using Visual C++ for this project, but I still want to embed Ruby in the executable. Looking around the directories, so far I found two .lib files that appear to be what are needed to do this. I used the non-static one (the static one caused errors about multiply defined functions), and once I moved the .dll I found in the ruby/bin directory into the project directory things compiled. In fact, things seem to be working well, but I can't seem to load the Ruby file. I've tried with the file in the project directory, as well as in the Debug directory, but Ruby doesn't seem to find it. Any suggestions on how I can figure out Ruby's load-path? (Normally I'd do rb_p("$:") or something similar, but since this is a GUI project I don't know where stdout/stderr go). Thanks, Ben