社区
Delphi
帖子详情
Delphi调用VC++的DLL?
Mars
2000-06-23 08:19:00
如果VC++的DLL中有如下声明:
int function test(short *mydata,short count)
{。。。}
其中mydata和count都是要反回值的形参,用Delphi应该如何掉用!
...全文
155
4
打赏
收藏
Delphi调用VC++的DLL?
如果VC++的DLL中有如下声明: int function test(short *mydata,short count) {。。。} 其中mydata和count都是要反回值的形参,用Delphi应该如何掉用!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
jll
2000-06-24
打赏
举报
回复
function test(mydata:point;var count:integer):integer;stdcall external 'yourname.dll' name 'test';
meijg
2000-06-24
打赏
举报
回复
function test(mydata:point,count:integer):Integer;stdcall external 'yourname.dll' name 'test';
H999
2000-06-24
打赏
举报
回复
VC++ code:
extern "C" int PASCAL EXPORT test(short *mydata,short count){
return (*mydata * count);
}
EXPORTS
test;
VC生成csdn.dll.
delphi调用,下面code已经调试成功。
Good luck!
delphi code:
procedure Tmainfm.Button1Click(Sender: TObject);
var P:function( mydata : pointer; count : integer ):integer; stdcall;
hlib : THANDLE;
a : integer;
begin
a := 10;
hLib:=LoadLibrary(PChar('csdn.dll'));
P:=GetProcAddress(hLib,'test');
edit1.text := inttostr( P(@a,10) );
end;
kxy
2000-06-23
打赏
举报
回复
int function test(short *mydata,short count)
count如何返回值?
DLL
动态链接库的实现及
调用
(
VC
++,
Delphi
)
该压缩包包括:1.动态链接库(
DLL
)的编译实例,包括_cdecl和stdcall两种常见函数
调用
约定的实现,并且解决了名字修改问题,在实例代码中有详细的说明!2.针对不同的函数
调用
约定,以及动态
调用
DLL
库和静态
调用
DLL
库分别提供了
调用
实例的源代码和程序!3.压缩包中包括
VC
++
调用
DLL
的实例源码和
Delphi
调用
DLL
的实例源码和说明(利用前面
VC
++生成的
DLL
)!4.其中
VC
++
调用
DLL
实例中还简单说明了计算string的长度,比较,大小写转换等功能实现的方法!
Delphi
中怎么
调用
VC
++创建的动态链接库
在
Delphi
中
调用
VC
++创建的动态链接库,程序中包含创建动态链接库工程和
delphi
调用
工程。
VC
++/
Delphi
编写动态连接库 含测试用例 C#
调用
VC
++/
Delphi
DLL
(含源代码和部分注释)
VC
++/
Delphi
编写动态连接库 含测试用例 C#
调用
VC
++/
Delphi
DLL
(含源代码) 小巧可用,源码已经调试通过,含部分注释 适合
dll
编程的入门人员 有不住之处,希望各位海涵!
C++、VB、
DELPHI
调用
DLL
示例
C++、VB、
DELPHI
调用
DLL
的小例子。
DLL
是用
VC
++写的。同学在做毕业设计时要求
调用
DLL
,我就顺便把VB和
DELPHI
的也做上了
C++、VB、
DELPHI
、JAVA、C#
调用
DLL
C++、VB、
DELPHI
调用
DLL
的小例子。
DLL
是用
VC
++写的。同学在做毕业设计时要求
调用
DLL
,我就顺便把VB和
DELPHI
的也做上了。继加了JAVA
调用
DLL
后,空闲的时候又加了个C#
调用
的例子。根据以前下载过的朋友的要求,这次把JaWin要用到的几个文件也加进去了。不用再另外去国外网站下了。
Delphi
5,392
社区成员
262,732
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章