应该exports函数名,而不是单元名称。
比如:
library Test;{$R *.res}function GetNumber(AStr: string): Integer;
begin
Result := 0;
end;exports
GetNumber;begin
end.
比如:
library Test;{$R *.res}function GetNumber(AStr: string): Integer;
begin
Result := 0;
end;exports
GetNumber;begin
end.
解决方案 »
- delphi开发多国语言问题
- fastreport3.0 多列打印问题
- 新手脆求,请达人们看过来
- ●程序中一块区域想要显示网页内容,请问我的程序中为什么非得使用绝对路径才能显示?
- service application
- "operation not applicable"是什么意思?
- 如何找到exe文件中32*32图标的索引号
- 数据传输???
- 冰天雪地全裸空转360度跪求..........................家产全梭哈........................................................................
- 我要疯了
- 资源文件的使用一例求助???
- 用delphi进行数据库编程大家都是用哪种连接数据库方式?
是一个显示窗体的DLL
他应该是一个涵数才行啊
为什么我把函数放在private处
系统告诉我没有使用呢
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
Button1: TButton;
private
{ Private declarations } public
{ Public declarations }
function dllshow:boolean;
end;implementationuses dllform;
{$R *.DFM}
function dllshow:boolean;
var
form1:tform;
pword:integer;
begin
pword:=0;
form1:=tform.create(application);
pword:=pword+1;
result:=true;
form1.show;
end;
end.
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
Button1: TButton;
private
{ Private declarations } public
{ Public declarations }
function dllshow:boolean;
end;function dllshow:boolean; stdcall;
implementationuses dllform;{$R *.DFM}
function dllshow:boolean; stdcall;
var
form1:tform;
pword:integer;
begin
pword:=0;
form1:=tform.create(application);
pword:=pword+1;
result:=true;
form1.show;
end;
end.library Project1;uses
Unit1 in 'Unit1.pas' {Form1};{$R *.RES}exports
dllshow;
begin
end.
有窗体的
DLL
真烦人啊
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
Button1: TButton;
private
{ Private declarations } public
{ Public declarations }
function dllshow:boolean;
end;function dllshow:boolean; stdcall;
implementation{$R *.DFM}
function dllshow:boolean; stdcall;
var
form1:tform;
pword:integer;
begin
pword:=0;
form1:=tform.create(application);
pword:=pword+1;
result:=true;
form1.show;
end;
end.
我知道不应该uses dllform
那有你行啊 三个红星
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type
TForm1 = class(TForm)
Label1: TLabel;
Button1: TButton;
private
{ Private declarations } public
{ Public declarations }
end;function dllshow:boolean; stdcall;
implementation{$R *.DFM}
function dllshow:boolean; stdcall;
var
form1:tform;
pword:integer;
begin
pword:=0;
form1:=tform.create(application);
pword:=pword+1;
result:=true;
form1.show;
end;
end.