在运行时报错参数类型错。
java代码如下:
long tonyone =10000;
Variant t = new Variant(tonyone);
long tony1 =t.VariantByref;
long tonytwo = 11000;
Variant o = new Variant(tonytwo);
long tony2=o.VariantByref;
double tonythree =1.0;
Variant y = new Variant(tonythree);
double tony3 =y.VariantByref;
long tonylong = Inerobjuse.call(Inerobjuse,"GetTransactionStatistics",tony1,tony2,tony3).getLong();
急急!!!!!!!急急!!!!!!!急急!!!!!!!接口函数VB写的如下:
Public Function GetTransactionStatistics( _
ByRef passedTrans As Long, _
ByRef failedTrans As Long, _
ByRef hitsPerSec As Double _
) As LongParameters
passedTrans
Output argument - Number of transactions that passed
failedTrans
Output argument - Number of transactions that failed
hitsPerSec
Output argument - Hits per second
java代码如下:
long tonyone =10000;
Variant t = new Variant(tonyone);
long tony1 =t.VariantByref;
long tonytwo = 11000;
Variant o = new Variant(tonytwo);
long tony2=o.VariantByref;
double tonythree =1.0;
Variant y = new Variant(tonythree);
double tony3 =y.VariantByref;
long tonylong = Inerobjuse.call(Inerobjuse,"GetTransactionStatistics",tony1,tony2,tony3).getLong();
急急!!!!!!!急急!!!!!!!急急!!!!!!!接口函数VB写的如下:
Public Function GetTransactionStatistics( _
ByRef passedTrans As Long, _
ByRef failedTrans As Long, _
ByRef hitsPerSec As Double _
) As LongParameters
passedTrans
Output argument - Number of transactions that passed
failedTrans
Output argument - Number of transactions that failed
hitsPerSec
Output argument - Hits per second
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货