procedure TForm1.Button1Click(Sender: TObject);
begin
try
if Initalise > 0 then
showmessage('Initalisation Error')
else
MessageBox.Text := 'Init OK';
except
showmessage('Error in Dll');
end;
end;
firstly, i dont see the reason why you use try except block?
you have no crash unsafe calls there so you can easly remove it.
secondly, could you supply more info what components you want to implement in your DLL?
and what is MessageBox in your case? Is it the component created by DLL?