恒大对上港直播视频:高手的进!关于C语言函数转pascal语言函数的问题

来源:百度文库 编辑:高考问答 时间:2024/04/29 20:16:06
楼主: 我现在一直用Delphi开发工具
有时得把C语言写的DLL中的函数拿到Delphi中来用
下面就遇到了这样的难题,大家会的就帮帮助

C语言写的DLL中的函数原型:
DWORD SMGPSendSingle(int nNeedReport,
int nMsgLevel,
const char* sServiceID,
int nMsgFormat,
const char* sFeeType,
const char* sFeeCode,
const char* sFixedFee,
const char* sValidTime,
const char* sAtTime,
const char* sChargeTermID,
const char* sDestTermID,
int nMsgLen,
const char* sMsgContent,
char* sMsgID,
int* pnErrorCode,
int nMsgType,
const char* sSrcTermID);
在Delphi中这样调用function SMGPSendSingle(……,……,,,,……):DWORD;……
()中的const char* sServiceID, char* sMsgID,int* pnErrorCode
怎么转成Delphi的(pascal语言)?
out sServiceID:string[20]??
请高手们指点一下
很不好意思, 我自己解决了
不断的学习,我也能成为高手
我与高手只差一个字
因为我叫低手他叫高手^_^