编写Dll时
library DllExample;
uses
SysUtils,
Classes,
Dialogs,
Example in 'Example.pas';{$R *.res}
procedure showHello; export
begin
ShowMessage('Hello World');
end;exports
showHello index 1;begin
end.
----------------------------
unit Example;interface
procedure showHello;implementation
procedure showHello; external 'DllExample' index 1;end.
编译时有警告错误
[Warning]DllExample.dpr(28): Symbol 'INDEX' is specific to a platform
[Warning]Example.pas(9): Symbol 'INDEX' is ...在调用这个Dll时,程序报错说找不到Dll
我也Use了Example单元,Dll也在同一目录
还会是什么问题呢?
library DllExample;
uses
SysUtils,
Classes,
Dialogs,
Example in 'Example.pas';{$R *.res}
procedure showHello; export
begin
ShowMessage('Hello World');
end;exports
showHello index 1;begin
end.
----------------------------
unit Example;interface
procedure showHello;implementation
procedure showHello; external 'DllExample' index 1;end.
编译时有警告错误
[Warning]DllExample.dpr(28): Symbol 'INDEX' is specific to a platform
[Warning]Example.pas(9): Symbol 'INDEX' is ...在调用这个Dll时,程序报错说找不到Dll
我也Use了Example单元,Dll也在同一目录
还会是什么问题呢?
解决方案 »
- 肯请高手们帮帮忙,远程访问服务器问题!(急急急)
- WebBrowser与DBGRID发生冲突如何解决?
- 寻求指导者,每位1000分相送(跟者有分)
- 终于多了一条内裤,呵呵,不过还是只能给100,要不我就给200了。
- 关于系统登录的程序
- 有史以来一个最奇怪SQL的现象,急救!
- 动态改变TreeView中结点
- Delphi6个人版的序列号是什么呀?
- 关于程序运行中更改公式问题
- 请问各位大虾:我的主窗口设为fsMDIForm,其他三个弹出窗口设为fsMDIChild,通过点击主窗口的工具栏上的按钮促发弹出窗口,为什么默认的弹出窗口总是最后一个窗口?如何改为第一个窗口? 谢谢赐教!!
- 请问一下,我用DELPHI 7编写了WEB SERVICE,但我不知道该怎么用,请教我一下
- 李维的 《Delphi 6/Kylix2 SOAP/Web Servicev》?
1)uses语句中包含ShareMem单元,要将ShareMem单元放在第一个
2)procedure showHello;stdcall