DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: vic_168999
今日帖子: 0
在线用户: 1
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 lsh998 (lsh) ★☆☆☆☆ -
盒子活跃会员
2004/2/21 18:12:58
标题:
bios,快来啊 浏览:1097
加入我的收藏
楼主: bios 救命 
 我在delphi里这样调用怎么不行  它给的c函数是 int selectcardtype(int icardtype)  动态库是“stsasw95.dll” 我是这样做为什么不行:;;
uint2

interface

function selectcardtype(icardtype:integer):integer:

implementation
begin
function selectcardtype;far;external 'stsasw95.dll';

end.

unit1

uses 
winprocs,unit2

implication
begin
unit2.selectcardtype(460);
end.
它提示的错误是:project1.exe无法找到入口。无法定位输入点selectcardtype于动态连接库 stsasw95.dll

给个很完整的列子好吗,是不是要区分大小写。
liusonghua3@sohu.com

 

----------------------------------------------
lsh
作者:
男 bios (阿贡) ★☆☆☆☆ -
盒子中级会员
2004/2/21 18:16:58
1楼: uint2

interface

function selectcardtype(icardtype:integer):integer:far;external 'stsasw95.dll';//修改!

implementation
///function selectcardtype;far;external 'stsasw95.dll';//错误

end.

//*********************************************
unit1

uses 
winprocs,unit2

implementation
procedure tform1..button1click(sender :tobject);
begin
unit2.selectcardtype(460);
end;

end.



----------------------------------------------
按此在新窗口浏览图片
按此在新窗口浏览图片
作者:
男 sephil (NAILY Soft) ★☆☆☆☆ -
盒子中级会员
2004/2/21 19:25:45
2楼: uint2;

interface

function selectcardtype(icardtype:integer):integer:

implementation

function selectcardtype(icardtype:integer):integer;stdcall;external 'stsasw95.dll';

end.

另外调用Dll的函数时函数名区分大小写的 


----------------------------------------------
Copyright 2008 ? NAILY Soft

Click here to redirect to my home
Click here to redirect to my blog
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行70.3125毫秒 RSS