加入后,在dlg.DoModal()时,没有任何对话框弹出来,直接跳过去了。串口控件 动态链接库

解决方案 »

  1.   

    F11进入DoMoal()函数内部,应该是出错了吧~
      

  2.   

    我F11进入后,发现这里出现问题if (CreateDlgIndirect(lpDialogTemplate, CWnd::FromHandle(hWndParent), hInst))
    正常情况下为TRUE,但是在这里为FALSE,怎么回事呢?请大侠指教!
      

  3.   

    继续跟踪进入CreateDlgIndirect函数,出现以下错误提示
    >>> If this dialog has OLE controls:
       >>> AfxEnableControlContainer has not been called yet.
       >>> You should call it in your app's InitInstance function.
    我在对话框构造函数中加入了AfxEnableControlContainer
    还是没有起作用