c# 调用银海医保接口
接口说明
属性	值
App ID	
Type Library ID	
Program ID	yinhai.xjcj.interface
COM ClassName	COClass_n_yh_interface
COM ClassID	
Interface Type	Dual Interface
Interface Name	In_yh_interface
Interface ID	
引用了动态库yh_interface.dll后,直接声明类,调用函数
初始化函数返回1,成功
CoClass_n_yh_interfaceClass yh_qyb = new CoClass_n_yh_interfaceClass();
this.yh_qyb.yh_interface_init(ref this.iReturn, ref this.sErr); --retun 1 成功
this.yh_qyb.yh_interface_call(sJybh...  --return -1 失败
错误提示 “不是通过代理接口调用的” 不是直接调用的么,据说dll是pb写的?
------解决方案--------------------API没有说明吗?
------解决方案--------------------你调用函数的时候,参数类型必须正确, 不能用object的.
string 对string
int32 对 long试试
------解决方案--------------------
楼主,这几句vb的代码“翻译”成C#代码,这个你会不?不会的话,看看MSDN上面的例子多语言是怎么对应的。。。