Home > Software engineering >  VC6 project after conversion to VC2010, cannot open the dialog box
VC6 project after conversion to VC2010, cannot open the dialog box

Time:04-17

A VC6 project, after the conversion to VC2010, compiler through. When running, some modal and non-modal dialog box, create failure, window handle returns an empty, don't send WM_INITDIALOG message;

In the following statement, VC2010 debugging result, returns an empty handle, unable to function into the internal debugging. But in VC6 works
The hWnd=: : CreateDialogIndirect (hInst, lpDialogTemplate pParentWnd - & gt; GetSafeHwnd (), AfxDlgProc);

Code under VC6 compile operation is no problem. Please advise what reason can cause this failure? Loading dialog boxes are also standard controls inside the

CodePudding user response:

GetLastError see error message

  • Related