Sorry for the late reply again... Anyway, do you know what's wrong with the code?
I think it has something to do with this line :
return m[""Items""]")
Or should I escape the " character? If I should, how can I do it?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Sorry for the late reply again... Anyway, do you know what's wrong with the code?
return m[""Items""]")
Or should I escape the " character? If I should, how can I do it?
I read about an issue of IronRuby in this address : http://ironruby.codeplex.com/workitem/4132 I don't know if it is the issue or not. Oh yeah, I want to ask about ARC. Does it use IronRuby or another implementation? Sorry if it's bothering you.
If I could ask, does the console.writeline command automatically convert the variable into string?
ScriptRuntime runtime = Ruby.CreateRuntime();
ScriptEngine engine = Ruby.GetEngine(runtime);
engine.ExecuteFile("class.rb");
object asdf = engine.Execute(@"f = File.open('Notetag.rxdata', 'rb')
m = Marshal.load(f)
return m[""Items""]");
RubyArray a = (RubyArray)asdf;
MessageBox.Show(a[1].ToString());ScriptRuntime runtime = Ruby.CreateRuntime();
ScriptEngine engine = Ruby.GetEngine(runtime);
engine.ExecuteFile("class.rb");
object asdf = engine.Execute(@"f = File.open('Notetag.rxdata', 'rb')
m = Marshal.load(f)
return m[""Items""]");
RubyArray a = (RubyArray)asdf;
Console.WriteLine(a[1]);
While browsing another forum, I stumbled upon a program that uses IronRuby. It seems that the main problem is that the version of IronRuby that I used is incompatible with the .NET Framework. When I try to use the IronRuby dlls that were placed on the program, it works. 