M
mailmanb
Unregistered / Unconfirmed
GUEST, unregistred user!
BPL调用函数、过程时,我遇到以下问题,希望各位大虾伸出缓手。
BPL源程序:
type
SubForm=TSubForm;
procedure StrToMSG(s:string);stdcall;
procedure MSG;stdcall;
function GetValue(i:integer):integer;stdcall;
exports
StrToMSG,MSG,GetValue;
implementation
{$R *.dfm}
procedure StrToMSG(s:string);stdcall;
begin
showmessage(s);
end;
procedure MSG;stdcall;
begin
showmessage('调用成功!');
end;
function GetValue(i:integer):integer;stdcall;
begin
result:=1;
end;
……
initialization
RegisterClass(TSubForm);
finalization
UnRegisterClass(TSubForm);
end.
BPL源程序:
type
SubForm=TSubForm;
procedure StrToMSG(s:string);stdcall;
procedure MSG;stdcall;
function GetValue(i:integer):integer;stdcall;
exports
StrToMSG,MSG,GetValue;
implementation
{$R *.dfm}
procedure StrToMSG(s:string);stdcall;
begin
showmessage(s);
end;
procedure MSG;stdcall;
begin
showmessage('调用成功!');
end;
function GetValue(i:integer):integer;stdcall;
begin
result:=1;
end;
……
initialization
RegisterClass(TSubForm);
finalization
UnRegisterClass(TSubForm);
end.