using forms in dll's
Posted on 1999-07-09
I want to create a program, which is expandable using dll's.
My Q1: How can I put a form in a DLL?
Q2: How do I make the form visible?
I thought I had the answer by just exporting the form's object type. But, when I import, using getprocaddr, the object and call the form.create. I receive a Exception.
Example of my code:
Handle := LoadLibrary('LIBFORMTEST.DLL');
if Handle <> 0 then
Form1 := GetProcAddress(Handle, 'TForm1');
if @Form1 <> nil then
The TForm1 is the exported object type in the DLL.
Anyone has any examples about forms in a dll, or anyone can tell me how to make this work?