Problem with Model Dialog box in a DLL
-
Hi all, I am having a dll with Dialog as a Resouce. I have created a Class for that Dialog also. for example : if Dialog Class is "one" in the DLL Function DLL Function() { one o; o.DoModel(); // Here not populating the Dialog. } I then start debug the DLL. It is giving error in BOOL CDialog::Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd) { ... ... #ifdef _DEBUG if (!_AfxCheckDialogTemplate(lpszTemplateName, FALSE)) --> here is the Error { ASSERT(FALSE); // invalid dialog template name PostNcDestroy(); // cleanup if Create fails too soon return FALSE; } #endif //_DEBUG } I am not able to Load the Dialog in the DLL. Please help me out.
Uday kiran
-
Hi all, I am having a dll with Dialog as a Resouce. I have created a Class for that Dialog also. for example : if Dialog Class is "one" in the DLL Function DLL Function() { one o; o.DoModel(); // Here not populating the Dialog. } I then start debug the DLL. It is giving error in BOOL CDialog::Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd) { ... ... #ifdef _DEBUG if (!_AfxCheckDialogTemplate(lpszTemplateName, FALSE)) --> here is the Error { ASSERT(FALSE); // invalid dialog template name PostNcDestroy(); // cleanup if Create fails too soon return FALSE; } #endif //_DEBUG } I am not able to Load the Dialog in the DLL. Please help me out.
Uday kiran
-
Hi all, I am having a dll with Dialog as a Resouce. I have created a Class for that Dialog also. for example : if Dialog Class is "one" in the DLL Function DLL Function() { one o; o.DoModel(); // Here not populating the Dialog. } I then start debug the DLL. It is giving error in BOOL CDialog::Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd) { ... ... #ifdef _DEBUG if (!_AfxCheckDialogTemplate(lpszTemplateName, FALSE)) --> here is the Error { ASSERT(FALSE); // invalid dialog template name PostNcDestroy(); // cleanup if Create fails too soon return FALSE; } #endif //_DEBUG } I am not able to Load the Dialog in the DLL. Please help me out.
Uday kiran
Did you this code on the first line of your function
AFX_MANAGE_STATE(AfxGetStaticModuleState());
WhiteSky