C
cornermoss
Unregistered / Unconfirmed
GUEST, unregistred user!
const BufSize=2048
//发送每一笔数据的缓冲区大小
SpareBufSize=2007;//剩余缓冲区大小
type
ReqBuf=array[0..BufSize] of Char;
现在要
ReqCode:=GetSendInfoFromIncept(CtrlCode)+Buf;
其中
var ReqCode:ReqBuf;
Buf:array[0..SpareBufSize] of char;
GetSendInfoFromIncept(CtrlCode)所返回的值是string
我该怎么办呢??谢谢了先~~
PS:
strcopy(@ReqBuf[0],PChar(GetSendInfoFromIncept(CtrlCode) + String(PChar(@Buf))) );
出错为
用shinesi(阿shine) 提示出错:
[Error] Teach_Func_f.pas(373): '(' expected but '[' found
[Error] Teach_Func_f.pas(373): Incompatible types: 'ReqBuf' and 'PChar'
谢谢了先呀~~~~
//发送每一笔数据的缓冲区大小
SpareBufSize=2007;//剩余缓冲区大小
type
ReqBuf=array[0..BufSize] of Char;
现在要
ReqCode:=GetSendInfoFromIncept(CtrlCode)+Buf;
其中
var ReqCode:ReqBuf;
Buf:array[0..SpareBufSize] of char;
GetSendInfoFromIncept(CtrlCode)所返回的值是string
我该怎么办呢??谢谢了先~~
PS:
strcopy(@ReqBuf[0],PChar(GetSendInfoFromIncept(CtrlCode) + String(PChar(@Buf))) );
出错为
用shinesi(阿shine) 提示出错:
[Error] Teach_Func_f.pas(373): '(' expected but '[' found
[Error] Teach_Func_f.pas(373): Incompatible types: 'ReqBuf' and 'PChar'
谢谢了先呀~~~~