K
kele6666
Unregistered / Unconfirmed
GUEST, unregistred user!
我在exe中定义一个叫Transfer的属性;然后call起一支dll,并用SetStringProperty(mForm,'Transfer',Transfer)方法将此属性的值传给dll中的'Transfer'属性,但是失败了,请问是怎么回事?<br>procedure TForm1.SetStringProperty(xComponent: TComponent; xProperty,<br> xValue: string);<br>var<br> mPropInfo: PPropInfo;<br>begin<br> if (xComponent = nil) or (xProperty = '') then exit;<br> mPropInfo := GetPropInfo(xComponent.ClassInfo, xProperty);<br><br> if (mPropInfo <> nil) then<br> SetStrProp(xComponent, mPropInfo, xValue)<br>end;