I infowain Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #22 use ComObj<br><br>在程序里面加上<br>initialization<br> CoInitialize;<br>end.<br>
X xiao_chenke Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #23 在你DLL中的函数内加入这个看看<br><br> CoInitialize(nil);<br> try<br> //你的函数体<br> finally<br> CoUninitialize;<br> end;
在你DLL中的函数内加入这个看看<br><br> CoInitialize(nil);<br> try<br> //你的函数体<br> finally<br> CoUninitialize;<br> end;
I iamy Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #24 uses ActiveX <br><br><br>.....<br><br>var<br> Fr: TFr;<br><br>implementation<br><br>{$R *.dfm}<br><br>.....<br><br>initialization<br> CoInitialize(nil);<br>finalization<br> CoUninitialize;<br>end.
uses ActiveX <br><br><br>.....<br><br>var<br> Fr: TFr;<br><br>implementation<br><br>{$R *.dfm}<br><br>.....<br><br>initialization<br> CoInitialize(nil);<br>finalization<br> CoUninitialize;<br>end.
沙 沙隆巴斯的主人 Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #25 >>function DealErr(var >>errmsg:string;errNum:integer;errUnit:string;errMan:string):integer;stdcall;<br><br>你的参数用的是string类型,换成pchar试试
>>function DealErr(var >>errmsg:string;errNum:integer;errUnit:string;errMan:string):integer;stdcall;<br><br>你的参数用的是string类型,换成pchar试试
I iamy Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #26 http://www.delphibbs.com/delphibbs/dispq.asp?lid=2547045
S snowwhite Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #27 >>function DealErr(var >>errmsg:string;errNum:integer;errUnit:string;errMan:string):integer;stdcall;<br><br>你的参数用的是string类型,换成shortstring试试 <br>
>>function DealErr(var >>errmsg:string;errNum:integer;errUnit:string;errMan:string):integer;stdcall;<br><br>你的参数用的是string类型,换成shortstring试试 <br>
S secondmonk Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #28 这种情况我也碰到过,是因为 Dll 中 Uses 语句用到的单元没有被调用程序窗口的 Uses语句引用引起的。你比较一下就能发现问题了。
D dajun Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-27 #29 在调用单元的Uses中加入DB, ADODB就行了.
L lmeagle01 Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-28 #30 这个问题我已经解决了,感谢大家的帮助,谢谢!!!