Newbie - DLL Usage
Posted on 1998-05-08
I just created a DLL is Delphi 2. The DLL consists of two forms which were previously part of the exe file, but I pulled them out so that another one of my Delphi apps can use them. So, I have two general questions.
1) How do I call the DLL from the main exe? I see the import/export stuff in the Delphi help files, but I'm a little confused. I know I want the DLL present to start the exe (explicit I think its called), but I'm confused because each of the examples in the help file reference calling a procedure in a DLL (procedure ImportByName; external 'testlib.dll';). I just want to open a form in the DLL and call methods in the DLL form, from that form. How do I just display a form stored in the DLL (is there an equivelent to createform)?
2) Can I assume that once the form in the DLL is displayed, I can use it as if it was part of the main exe? The first form in the DLL calls the second form in the DLL, which has DB controls in it (query by example). Please let me know if there are any limitations to passing strings for the QBE from one DLL form to another form in the same DLL OR if I hav eto do anything special to have DB contols in a DLL.