delphi下调用c写的dll老是出错,我想问一些delphi下怎么和c函数兼容,主要是指他的参数,象这样的函数:
int method(const int nReply, const int nLevel,
const char *sID,
char *sID, int *nErrorCode,
const char cType,cPTotal=0,char cNumber=0);
这个函数是c的,delphi里怎么调用的时候怎么掉啊,参数应该怎么对应啊
int method(const int nReply, const int nLevel,
const char *sID,
char *sID, int *nErrorCode,
const char cType,cPTotal=0,char cNumber=0);
这个函数是c的,delphi里怎么调用的时候怎么掉啊,参数应该怎么对应啊
解决方案 »
- OnDrawDataCell的使用
- 哪里有 delphi+sql 2000 网络信息管理系统方面的资料
- 关于Memo控件显示的问题
- 如何对交换机编程控制?
- 我想在DBGrid的CellClick事件里面把当前行的所有数据打印出来,该怎么做呢?
- 一个SQL语句的问题,请大家帮忙,在线等,可加分!!
- 如何取出TADODataSet的某行某列
- 一个ListBox和一个Button,Button的OnClick事件是删除ListBox中选中的项目,怎么写这个事件?俺是新手!
- xpmenu咱们用?
- Delphi下的串口通信如何提高速度?
- delphi调用Vc的dll的问题
- 为什么是_AddRef而不是AddRef
的错误,我想是参数传递引起的,不知道怎么解决
const char *sID,
char *sID, int *nErrorCode,
const char cType,cPTotal=0,char cNumber=0);
因该这样申明吧!?
function(nReply:integer;nLevel:integer;sID:pChar;var nErrorCode:integer;cType:Char;cPTotal:Char=0;cNumber:Char=0):integer;
Char不行的话,可以用Byte替换。