我用Delphi的WSDL IMPORTEL映射了Webservice接口函数.调用正常.
可是将其封装在DLL里却出错.提示为:"Olesyserror 尚未调用 CoInitialize".
?????
请各位执教一下.
可是将其封装在DLL里却出错.提示为:"Olesyserror 尚未调用 CoInitialize".
?????
请各位执教一下.
解决方案 »
- 一个简单的ADO连接远程数据问题
- 新建了一个工程,添加了一个窗体,放上一些panel,编译保存后,为什么没有“工程名.~dpr”这个文件?
- 年终放分了,散进所有分.
- 请教各位高手 怎样屏蔽掉Memo控件的键盘事件
- 如何实现rave让他不用预览,就直接打印呢?
- 如何得到如Richedit的Canvas的完整图像
- form和button的样式
- 网络编程问题
- 要编写tcp/ip的交互通信用什么?怎样用?
- 请问什么时候发生Blod data has been modified 错误,如何恢复?
- 当鼠标离开一个image1时,用什么事件?
- 请问哪位大虾知道"ADOUserControl"控件哪里有载? 在线等待! 立马给分!
应该是加上CoInitialize,CoUninitialize;在你的借口单元试试// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://127.0.0.1/isapiserverdll/Psarp.dll/wsdl/IDownLoad
// Version : 1.0
// (2003-8-25 17:45:34 - $Revision: 1.9.1.0.1.0.1.9 $)
// ************************************************************************ //unit IDownLoad1;interfaceuses InvokeRegistry, Types, XSBuiltIns,inifiles,strutils,ActiveX;type..........
initialization
CoInitialize(nil);//ADD THIS
InvRegistry.RegisterInterface(TypeInfo(IDownLoad), 'urn:Udownload-IDownLoad', '');
InvRegistry.RegisterDefaultSOAPAction(TypeInfo(IDownLoad), 'urn:Udownload-IDownLoad#%operationName%');end.