staticVALUEfolemethod_initialize(VALUEself,VALUEoletype,VALUEmethod){structoletypedata*ptype;VALUEobj=Qnil;if(rb_obj_is_kind_of(oletype,cWIN32OLE_TYPE)){SafeStringValue(method);Data_Get_Struct(oletype,structoletypedata,ptype);obj=olemethod_from_typeinfo(self,ptype->pTypeInfo,method);if(obj==Qnil){rb_raise(eWIN32OLERuntimeError,"not found %s",StringValuePtr(method));}}else{rb_raise(rb_eTypeError,"1st argument should be WIN32OLE_TYPE object");}returnobj;}