Click to See Complete Forum and Search --> : Child dialog in DLL


LazyLizard
March 8th, 2003, 06:03 AM
Hi everybody.
Does anyone know how to export a child dialog from dynamically-linked DLL. I have a main dialog (in exe) with TabControl. I want my dll's create their own dialogs in that TabControl. CreateDialog() with handle of TabControl as parent window doesn't work :( Please let me know if someone knows how to realize that plugin-based application.

Regards, Anton

aixing
March 10th, 2003, 01:52 AM
I think you should add the following code to your DLL's OnInitInstance().....
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));

LazyLizard
March 10th, 2003, 06:26 AM
I thought it's non-mfc forum. Pure API please.