pallavi pathak
2016-10-08 11:46:56 UTC
Hi,
I have created a dialogbox "Certdlg". which I am trying to display
if(certDlg.DoModal() == IDOK)
{
valid = 1
}
but this call goes and hangs in CDialog::DoModal(); . I could realise the problem it have is the "Hwnd" , am passing while invoking dlg constructor.
CISCertDlg certDlg(thumbPrint, validFrom, validUntil, parentWnd);
Passing Null, in parentWnd, creates dlg but with no handle to application.
In place of certdlg if MessageboxEx is called then also DoModal hangs while calling messagebox.
I have created a dialogbox "Certdlg". which I am trying to display
if(certDlg.DoModal() == IDOK)
{
valid = 1
}
but this call goes and hangs in CDialog::DoModal(); . I could realise the problem it have is the "Hwnd" , am passing while invoking dlg constructor.
CISCertDlg certDlg(thumbPrint, validFrom, validUntil, parentWnd);
Passing Null, in parentWnd, creates dlg but with no handle to application.
In place of certdlg if MessageboxEx is called then also DoModal hangs while calling messagebox.