D
dearwo
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大哥,救命啊!!!我快疯了!!!!只要能救我,我愿给所有的钱!拜托了!
问题:
公司是sp,要开发个发送短消息的系统,我用的是傲天的sgip.dll,sgip.dll是傲天用vc开发的,我是用delphi在他的基础上再开发,我在向网关发送短消息(submit)是成功的,网关也收到了,但从网关发短消息到sp 时却怎么也收不到,我看了一下deliver包中的数据大部分是#0,#1之类的东西,但也有短消息内容含在其中,但就是读不出deliver.messagecontent,长度字段也大的离谱,为什么?
//Deliver包
type
DeliverStr =packed record
sequencenumber1: Longword;
sequencenumber2: Longword;
sequencenumber3: Longword;
usernumber: array[0..21] of char;;
spnumber: array[0..21] of char;;
tp_pid: byte;
tp_udhi: byte;
messagecoding: byte;
messagelength: Longword;
messagecontent:array[0..159] of char;
end;
Startup(SPIP,SPPort,GWIP,GWPort,UserName,PassWord,30,60,SPNode,
1,5000,5,1,Deliver,nil,nil,nil);
问题:
公司是sp,要开发个发送短消息的系统,我用的是傲天的sgip.dll,sgip.dll是傲天用vc开发的,我是用delphi在他的基础上再开发,我在向网关发送短消息(submit)是成功的,网关也收到了,但从网关发短消息到sp 时却怎么也收不到,我看了一下deliver包中的数据大部分是#0,#1之类的东西,但也有短消息内容含在其中,但就是读不出deliver.messagecontent,长度字段也大的离谱,为什么?
//Deliver包
type
DeliverStr =packed record
sequencenumber1: Longword;
sequencenumber2: Longword;
sequencenumber3: Longword;
usernumber: array[0..21] of char;;
spnumber: array[0..21] of char;;
tp_pid: byte;
tp_udhi: byte;
messagecoding: byte;
messagelength: Longword;
messagecontent:array[0..159] of char;
end;
Startup(SPIP,SPPort,GWIP,GWPort,UserName,PassWord,30,60,SPNode,
1,5000,5,1,Deliver,nil,nil,nil);