Calling a (non-standard?) dll from mirc - 10/07/05 01:05 AM
I have a dll written in Delphi which has a form inside. The code to show the form is:
procedure show;stdcall;
begin
frmDLL := TfrmDLL.Create(nil);
frmDLL.Show;
end;
exports
show;
This works fine if I call "show" from a Delphi-compiled test program. But when I try to do /dll testDLL.dll show from mIRC, the form is shown, and mirc immediately crashes with "Memory cannot be read".
Anyone has any ideas how to fix it?
procedure show;stdcall;
begin
frmDLL := TfrmDLL.Create(nil);
frmDLL.Show;
end;
exports
show;
This works fine if I call "show" from a Delphi-compiled test program. But when I try to do /dll testDLL.dll show from mIRC, the form is shown, and mirc immediately crashes with "Memory cannot be read".
Anyone has any ideas how to fix it?