I am not sure what I am doing wrong.
I have made a DLL.
Inside the DLL I have include a form and unit1. On the form is a Memo control.
My guess is I have some kind of scoping issue. I can create the form, show the form, but when I go to write in the Memo control the program crashes.
I have to fully qualify the Memo for intellisense to work. Form1.Memo1.Lines.add(s);
I am guessing that it is because once I leave the procedure that creates the form that the form is no longer recognized?
Can someone show me the proper way to create a form in a DLL and be able to write to a memo from procedures.
I have something along the lines of: (I just sketched this out.. probably not accurate on class names)
Form1 : TForm;
Form1 := TForm.Create(nil)
I am calling DoTheWork from the Library unit.
Any help is appreciated.