D 的函数原型
unction iWAction(PortHandle: integer; iRec: integer;
ActiveType,
Date,
Address,
Topic: String
): integer; stdcall; external SJZDLL name 'iWAction';用vc 写的dll,对应函数
int CSJZDLLApp::iWAction(int PortHandle,
int iRec,
CString ActiveType,
CString Date,
CString Address,
CString Topic)
{
。。
int iLen;
iLen = ActiveType.GetLength();
}
Delphi 写的上层软件,输入 ActiveType = “1234”;问题 : iLen 字符串长度为什么等于1,其他几个字符串也是这个问题,不管是什么值,长度总是1.
unction iWAction(PortHandle: integer; iRec: integer;
ActiveType,
Date,
Address,
Topic: String
): integer; stdcall; external SJZDLL name 'iWAction';用vc 写的dll,对应函数
int CSJZDLLApp::iWAction(int PortHandle,
int iRec,
CString ActiveType,
CString Date,
CString Address,
CString Topic)
{
。。
int iLen;
iLen = ActiveType.GetLength();
}
Delphi 写的上层软件,输入 ActiveType = “1234”;问题 : iLen 字符串长度为什么等于1,其他几个字符串也是这个问题,不管是什么值,长度总是1.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货