|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2004/2/21 18:12:58 |
标题: |
|
加入我的收藏 |
楼主: |
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
|
|