popseven (TechnicalUser) (OP)
10 Aug 06 10:53
Given a DLL and a calling application (.EXE), clicking on a button found
on the calling application will then call the dll and display the form as non modal.
How will I do this that if I switch back to the calling application (which makes the DLL now move to the back of the calling application) and click again the button
to call the dll that it will not create an instance of the form (DLL) but rather just make DLL on top again.
It will be like this until I click the close button found on the DLL form.
Currently, I have a coding somewhat like this on my export function on the DLL.
function CallDLL(sServName: string; sDBName: string; sUID: string; sPW: string): Integer; export;
MyDLLForm := TMyDLLForm.Create(sServName, sDBName, sUID, sPW, Application);
CallDLL name 'CallDLL';
Upon running the above coding, it seems the form will be freed by doing so. The form will just flash/flick.
Can anybody suggest a Delphi 6 coding (both on the dll and the calling application)
to do this and the properties I need to set (if there is)?