看看这个, 我的例子<br>XXX.dll单元<br>function SelectTreeNode(TipTopLevel : String;<br> DataSet : OleVariant;<br> ReturnCols : Array of String;<br> ReturnNodes : Array of Integer): Variant; export; stdcall;<br>var<br> FirstNode : TTreeNode;<br> FrmSelectTree: TFrmSelectTree;<br> ArrayLength, i : integer;<br>begin<br>……<br> FrmSelectTree := TFrmSelectTree.Create(Application);<br> with FrmSelectTree do<br> begin<br> ……<br> end;<br>end;<br>其实, 就在方法中增加参数就可以了。