Delphi: how to create a mdichild form in dll


[ Delphi Forum ]

Posted by SeaWolf on January 26, 2004 at 15:57:42:

i can create mdichild form an my application passing dll reference(TApplication) but i am creating mdichild form using myapplication.pointer and i see a error

var
glbPtr : Pointer;
fmPtr : ^TApplication;

implementation

procedure Create_DataMod_Manage_User(App:Pointer;conHandle:Pointer;UserName:String;Scr:TScreen);
begin
glbPtr := App;
fmPtr := glbPtr;

fmPtr.CreateForm(TDll_DataMod,Dll_DataMod);
Dll_DataMod.dbaMain.dbHandleShared := conhandle;
end;


and form calling other unit

fmPtr.CreateForm(TfrmList,frmList);

and i see error "cannot create form.No mdi forms are currently active" ooooopsss!!!!


Related Articles and Replies:


[ Delphi Forum ]