Assertion Errors are often times the result of NULL pointers. Are you possibly pointing to a handle window that doesn't exist?
Assuming you've created a dialog w/ project wizard called CMyDialog...
From project wizard generated code
CMyDialog myDi
int nResponse = myDi.DoModal();
if...
You could use the FindWindow() function if you've got the window title.
CWnd* pWndBack;
CString sTitle;
sTitle.LoadString(_T("The Back Ground Window Title"));
pWndBack = CWnd::(FindWindow(NULL,sTitle));
if(pWndBack)
{
//TODO: Do Stuff with my window...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.