Forum: Ruby visual studio 2005

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bea6c053bed1251fa63e9368a235e6ba?d=identicon&s=25 Eric Teng (northwind)
on 2008-10-13 17:01
Hi guys,

I am newbie for ruby, but I used vs studio for long time. I searched
this forum for informations about how to build exentions for buy with
visual studio 2005 (c++), but I didn't get a clear answer, could anyone
tell me how to build the ruby extention with visual studio 2005 (c++)? I
try to use SWIG, but building the the simplest examples give me a lot of
link errors after I did comment out some lines in the config.h. Could
anyone post a sample project about how to build the c++ extention?

thanks
Eric
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2008-10-13 20:41
> I am newbie for ruby, but I used vs studio for long time. I searched
> this forum for informations about how to build exentions for buy with
> visual studio 2005 (c++), but I didn't get a clear answer, could anyone
> tell me how to build the ruby extention with visual studio 2005 (c++)? I
> try to use SWIG, but building the the simplest examples give me a lot of
> link errors after I did comment out some lines in the config.h. Could
> anyone post a sample project about how to build the c++ extention?

I think the word on the street is that you should compile with VC6.
That or use mingw :)
There is also an integrated Visual IDE with IronRuby [I think].
http://www.ruby-forum.com/topic/167508#new
Sorry I can't be of more help.
-=RDCP
Bea6c053bed1251fa63e9368a235e6ba?d=identicon&s=25 Eric Teng (northwind)
on 2008-10-13 21:37
Roger Pack wrote:
>
> I think the word on the street is that you should compile with VC6.
> That or use mingw :)
> There is also an integrated Visual IDE with IronRuby [I think].
> http://www.ruby-forum.com/topic/167508#new
> Sorry I can't be of more help.

VC6 is out of question for me as there are many tools I used can't be
compiled with vc6. IronRuby may be an option, but that may be too risky
for me as I need to compile so many libs with that new compiler. But I
do find some discussion about the issues with vs 2005, however, there is
no definite solution for the issues raised in the discussion. Could
someone shed some lights on this issue? can or can't, both fine with me,
but at least let new guys like me to know the issues.
> -=RDCP
7956c3c7d7ef344265029e6b4b569b91?d=identicon&s=25 Huw Collingbourne (huw)
on 2008-10-13 21:52
Roger Pack wrote:
> There is also an integrated Visual IDE with IronRuby [I think].
> http://www.ruby-forum.com/topic/167508#new


Just to clarify, Ruby In Steel has a free edition for standard Ruby
hosted in Visual Studio 2008, a free edition for IronRuby (VS2008), a
lowcost 'Text Edition' ($49 including optionally a Ruby-specific version
of VS2008), plus our high-end Developer Edition (for both VS2008 and
VS2005). While the commercial editions support multi-language projects
(e.g. Ruby and C# or C++ in the same Solution), we do not have any
particular support for C++ (which I think is what the original
questioner was interested in) beyond what is already in Visual Studio.

best wishes
Huw Collingbourne

SapphireSteel Software
Ruby and Rails In Visual Studio
http://www.sapphiresteel.com
Bea6c053bed1251fa63e9368a235e6ba?d=identicon&s=25 Eric Teng (northwind)
on 2008-10-14 15:09
hi Huw Collingbourne,

thanks for your reply.

the problem I have now is that I want to hook up my codes (all c++
developed in visual studio 2005) with SketchUp (google product).
SketchUp has a ruby interface so that I can grep data from model and
dump them into my codes, and my codes will spit the results back to
SketchUp through Ruby interface.
Now the questions are:
  a. how can I compiled my codes into dll so that ruby can call ( can
"ruby in steel" do it?)
  b. Installation issues as it all relates with .net and sketchup or any
other application should be able to find the system lib. I am not sure
whether SketchUp has manifest files, but if not, that will that affect
the plugin? If it is vc6.0, then you can copy system dlls around, but it
is not the case with .net.

hope anyone can give some inputs. If ruby talks vs2005, it is huge gains
for all.

Eric




Huw Collingbourne wrote:
> Roger Pack wrote:
>> There is also an integrated Visual IDE with IronRuby [I think].
>> http://www.ruby-forum.com/topic/167508#new
>
>
> Just to clarify, Ruby In Steel has a free edition for standard Ruby
> hosted in Visual Studio 2008, a free edition for IronRuby (VS2008), a
> lowcost 'Text Edition' ($49 including optionally a Ruby-specific version
> of VS2008), plus our high-end Developer Edition (for both VS2008 and
> VS2005). While the commercial editions support multi-language projects
> (e.g. Ruby and C# or C++ in the same Solution), we do not have any
> particular support for C++ (which I think is what the original
> questioner was interested in) beyond what is already in Visual Studio.
>
> best wishes
> Huw Collingbourne
>
> SapphireSteel Software
> Ruby and Rails In Visual Studio
> http://www.sapphiresteel.com
84dc575c33a123789521d53cad0f62ae?d=identicon&s=25 Lloyd Linklater (lloyd)
on 2008-10-14 15:09
Huw Collingbourne wrote:
> Just to clarify, Ruby In Steel has a free edition for standard Ruby
> hosted in Visual Studio 2008, a free edition for IronRuby (VS2008)

Huw is quite correct.  This was mentioned on a recent thread.  FYI:

http://www.ruby-forum.com/topic/167508#new
7956c3c7d7ef344265029e6b4b569b91?d=identicon&s=25 Huw Collingbourne (huw)
on 2008-10-14 16:17
Eric Teng wrote:

>   a. how can I compiled my codes into dll so that ruby can call ( can
> "ruby in steel" do it?)

We don't have any additions to the Ruby interpreter/libraries so nothing
special for calling DLLs from Ruby. Apart from mixed language .NET
solutions the only special type of 'interop' we have is supplied by the
Ruby Connector. This is a free widget that lets .NET programs
communicate with the standard Ruby interpreter. I think this may be the
opposite of what you need but you may want to take a look just in case
it's useful to you...

Download and watch a tutorial on the Ruby Connector here:
http://www.sapphiresteel.com/SapphireSteel-Downloads

best wishes
Huw

SapphireSteel Software
Ruby and Rails In Visual Studio
http://www.sapphiresteel.com
This topic is locked and can not be replied to.