Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI application in a DLL

Status
Not open for further replies.

Croady

Technical User
Jan 21, 2004
7
0
0
GB
Hello,

I am trying to open a DLL, which contains an MDI application, from an external application. The MDI form opens fine but when I try to open one of the child forms I get the following error message;

Cannot create form. No MDI forms are currently active.
 
With it being a DLL you will have to create the child forms in code yourself before you can view them.

A delphi application does all this for you (unless you ask it not to).

When your feeling down and your resistance is low,
light another cigarette and let yourself go!
 
Thanks for your response. The main MDI form uses the following code to open the child window(frmSQLWin) but this still produces the error detailed above.

var
frmSQLWin : TfrmSQLWindow;
begin
if dlgOpenSQL.Execute then
begin
frmSQLWin := TfrmSQLWindow.Create(Self);
frmSQLWin.Show;
frmSQLWin.mSQLWindow.Lines.LoadFromFile(dlgOpenSQL.FileName);
frmSQLWin.Caption := dlgOpenSQL.FileName;
end;

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top