Displaying Cdialog from Mfc in Qt
Hi,
I have to import an existing Mfc dialog in order to open this dialog in my qt code.
I use QWinHost, and have implement a class HostWindow as I found in the example. In the reimplementation of the createWindow function from QWinHost, I do this :
Code:
HWND HostWindow::createWindow(HWND parent, HINSTANCE instance)
{
CIHM_CAM_CTRLDlg *dlg = new CIHM_CAM_CTRLDlg();
return dlg->GetSafeHwnd();
}
The handle which is returned is null, and dlg is also null. It seems that my CDialog is not inialized.
Do somebody have an idea of what I need to do to make it works ?
Claudie