From: ts Date: 2001-09-03T22:01:37+09:00 Subject: [ruby-talk:20772] Re: Calling member methods from C++ >>>>> "B" == =?ISO-8859-1?Q?Bernhard Gl=FCck?= writes: B> String callString = "On"; B> callString += m_msg; B> callString += "()"; ^^^^^^^^^^^^^^^^^^ remove this line B> // Generated for the method B> ID callId = rb_intern( callString ); callString contains "OnFire()" callId will not have the same value than rb_intern("OnFire"), which is the right value B> // Now create the parameter array for the call... B> Array args; B> LogInfo(("Calling ruby object: %s::%s",rb_class2name( val ),(const B> char *)callString ) ); B> if ( rb_respond_to( val,callId ) ) B> { B> // And make the script call B> rb_funcall2( val,callId,args.Size(),args.Begin() ); B> } Guy Decoux