EricDraven
Programmer
Hi
I have just written my first DLL using the examples both in the delphi help pages and in past posts on these boards (many thanks McMerfy). I have it working fine using the following code.
hLib := LoadLibrary('C:\MyFolder\Reports.dll');
if (hLib <> 0) then
begin
try
@MyProc := GetProcAddress(hLib, PChar('MyProc'));
if Assigned(MyProc)then
MyProc(1,1);
finally
FreeLibrary(hLib);
end;
end;
I have added a form to the DLL which I create at the top of the MyProc procedure and then free at the end. The form contains several tables and a quickreport. The report previews fine but after closing the dll, I receive an EAbort exception error???
Does anybody have any ideas??? Arte Et Labore
I have just written my first DLL using the examples both in the delphi help pages and in past posts on these boards (many thanks McMerfy). I have it working fine using the following code.
hLib := LoadLibrary('C:\MyFolder\Reports.dll');
if (hLib <> 0) then
begin
try
@MyProc := GetProcAddress(hLib, PChar('MyProc'));
if Assigned(MyProc)then
MyProc(1,1);
finally
FreeLibrary(hLib);
end;
end;
I have added a form to the DLL which I create at the top of the MyProc procedure and then free at the end. The form contains several tables and a quickreport. The report previews fine but after closing the dll, I receive an EAbort exception error???
Does anybody have any ideas??? Arte Et Labore