有关DELPHI调用VC DLL 的问题!

jedi_he 2004-10-27 10:23:25
现由VC 编写的DLL,DLL 入口函数定义如下:
int TMS_DownLoad ( HANDLE hd_no ,Char CommType,struct down_info downfile,
char *ret_info)
入口参数:HANDLE hd_no:通讯链接的文件句柄
char CommType:通讯方式(0x01:串口,0x02:tcp/ip)
出口参数:char *ret_info:下载结果返回信息

__declspec(dllimport) int TMS_DownLoad(HANDLE hd_no,char CommType,struct down_info downfile,char *ret_info);

能否给出DELPHI调用该DLL 函数的定义码?
急等
...全文
121 5 打赏 收藏 举报
写回复
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
BenLeak 2004-10-29
  • 打赏
  • 举报
回复
有什么问题吗?
在 FAQ 不是有几个很好的例子吗
zwb666 2004-10-29
  • 打赏
  • 举报
回复
function TMS_DownLoad(hd_no: THandle; CommType: char; downfile: down_info; ret_info: pchar):Integer;stdcall;external

'ddd.dll' name 'TMS_DownLoad'
yueyixing 2004-10-27
  • 打赏
  • 举报
回复
stdcall是不是应该改为cdecl
beyondtkl 2004-10-27
  • 打赏
  • 举报
回复
function TMS_DownLoad(hd_no: THandle; CommType: char; downfile: down_info; ret_info: pchar):Integer;stdcall;external

'ddd.dll' name 'TMS_DownLoad';
micher_yan 2004-10-27
  • 打赏
  • 举报
回复
http://tech.tom.com/Archive/2001/10/31-8851.html
http://www.yesky.com/20011031/202937_1.shtml
发帖
Windows SDK/API

1177

社区成员

Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
帖子事件
创建了帖子
2004-10-27 10:23
社区公告
暂无公告