我在dll中使用了从CDialog继承的dlg,结果domodal出错,代码如下:
__declspec(dllexport) int GetScreen()
{
AfxMessageBox("xixi");
AfxSetResourceHandle(hInst);
CSrcDlg dlg;
dlg.DoModal();
          return 1;
}
hInst为在dllmain中传入的值,单步跟入为AfxGetResourceHandle出错,
资源文件建立在dll中,请问如何解决这个问题!还望高手指教!!