From: brabuhr@... Date: 2008-09-11T02:40:24+09:00 Subject: Re: Calling DLL's from Ruby On Wed, Sep 3, 2008 at 5:14 PM, wrote: > On Wed, Sep 3, 2008 at 4:14 PM, dkmd_nielsen wrote: >> I've written quite a bit of logic into DLL's using C#. I would like >> to leverage that logic in my Ruby scripts, but I am unsure where to >> start or how to start. I've installed RubyClr, but no documentation >> installed with it. >> >> Is RubyClr the correct path to take? Where can I find examples? >> Should I be looking elsewhere? > > I have used RubyCLR and ruby-mono[1], but don't know if I still have > any of the old projects sitting around. Found an old ruby-mono project while I was cleaning up: require 'mono' class RPCClient def initialize server @assembly = Mono::loadAssembly( "rpcclient.dll" ) @RPC = @assembly.new "Remoting::Client" @RPC.Initialize( server ) end def call rpc_call @RPC.Call( rpc_call ) end end Remoting::Client was a C# class that would send a string request over a TCP remote channel to a Remoting::Server and return the string response.