Вниз
Скачать: CL | DM;

Почему повторный вызов dll вызывает ошибку?   Найти похожие ветки 

← →
dim- ©   (2004-08-27 10:53) [0]

Почему повторный вызов dll вызывает ошибку?
library abouts;
uses
 SysUtils,
 Classes,
 main in "main.pas" {About};
{$R *.res}
exports ShowAbout ;
begin
end.

unit main;
...
Procedure ShowAbout() stdcall;export;
var
 About: TAbout;

implementation

{$R *.dfm}
Procedure ShowAbout() ;
Begin
About:=TAbout.Create(nil);
About.ShowModal;
About.free;
end;
------------------------------------------
Вызываю ее так:
var
  AboutShow:procedure();
  libhande:tHandle;
begin
@AboutShow:=nil;
libhande:=loadLibrary("Abouts.dll");
try
if libhande>=32 then begin
@AboutShow:=GetProcAddress(libhande,"ShowAbout");
if @AboutShow<>nil then
   AboutShow();
end;
finally
 FreeLibrary(libhande);
end;


← →
Digitman ©   (2004-08-27 10:58) [1]

AboutShow:procedure(); stdcall;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.033 c
8-1087811908
killer
2004-06-21 13:58
2004.09.12
Zoom в Image


14-1093340593
NikotiN
2004-08-24 13:43
2004.09.12
Алгоритм сортировки


6-1089017150
Анонимщик
2004-07-05 12:45
2004.09.12
TServerSocket OnClientDisconnect


1-1093597779
Goorus
2004-08-27 13:09
2004.09.12
Add to AutoRun


10-1037889217
ac2dc
2002-11-21 17:33
2004.09.12
ip клиента в коде серванта




   Наверх