CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Delphi >  VCL组件开发及应用

Delphi中的DLL调用中的参数传递问题

楼主qianlong20022002(dilly)2002-07-19 12:17:49 在 Delphi / VCL组件开发及应用 提问

在Delphi中的DLL调用中的参数传递问题  
   
  用VC编的DLL中,有一个函数,其原形为:  
  dial(int   handle,   const   char   *phone)  
  请问在Delphi中如何传递参数?谢谢 问题点数:20、回复次数:5Top

1 楼hjd_cw()回复于 2002-07-19 12:20:46 得分 5

funciton   dial(handle   :   int;phone   :   pchar):long   cdecl;external   'dll.dll'   name'dial'Top

2 楼genphone_ru(哎,什么都要学,真累)回复于 2002-07-19 12:21:31 得分 5

procedure   dial(iHandle:   Integer;   phone:pChar);stdcall   external   '123.dll';  
  Top

3 楼hjd_cw()回复于 2002-07-19 12:21:41 得分 0

更正:  
  funciton   dial(handle   :   int;phone   :   pchar):long;cdecl;external   'dll.dll'   name   'dial';  
  Top

4 楼genphone_ru(哎,什么都要学,真累)回复于 2002-07-19 12:22:18 得分 0

procedure   dial(iHandle:   Integer;   phone:pChar);stdcall   external   '123.dll';  
  Top

5 楼happyjoe(尘土飞扬)回复于 2002-07-19 12:22:26 得分 10

var  
      AHandle:   HWND;  
      PhoneString:   string;  
  begin  
      PhoneString   :=   '867561234567';  
      AHandle   :=   Self.Handle;  
      dial(AHandle,   PChar(PhoneString));  
  end;Top

相关问题

  • 调用DLL时如何传递参数?
  • 在DELPHI中调用函数时如何传递多维数组?????
  • delphi程序之间调用时的参数传递问题
  • delphi调用VC编的ocx函数的参数传递问题
  • delphi调用VC编的ocx函数的参数传递问题
  • delphi定义dll调用
  • dll调用的vb转delphi
  • delphi调用Vc Dll问题?
  • Delphi中调用DLL问题
  • 关于dll向调用者传递消息

关键词

  • dll
  • delphi
  • dial
  • dll调用
  • phonestring
  • ahandle
  • pchar
  • funciton
  • ihandle
  • 参数传递问题

得分解答快速导航

  • 帖主:qianlong20022002
  • hjd_cw
  • genphone_ru
  • happyjoe

相关链接

  • Delphi类图书
  • Delphi类源码下载
  • Delphi控件下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo