Hi,
Ive created a library w/ a dialog, linked it to a dll, and am testing the dll w/ an exe. the problem occurs when i create an instance of the library class in the dll class or as a global in the dll. the exe calls the dll which in turns calls the lib. the lib class does its thing successfully but when it closes the lib class dialog, i get an assertion failure in DestroyWindow at the line
ASSERT(m_hWnd == hWndOrig);
in the function BOOL CWnd:estroyWindow() of wincore.cpp
what do i need to set the m_hWnd to so that i dont get the assertion error? and does this get set before the dialog DoModal is called?
i dont get this error any other time, just when the DoModal is being called inside the dll. ive tested the dialog from an exe and it works fine.
any suggestions?
thanks,
txjump
Ive created a library w/ a dialog, linked it to a dll, and am testing the dll w/ an exe. the problem occurs when i create an instance of the library class in the dll class or as a global in the dll. the exe calls the dll which in turns calls the lib. the lib class does its thing successfully but when it closes the lib class dialog, i get an assertion failure in DestroyWindow at the line
ASSERT(m_hWnd == hWndOrig);
in the function BOOL CWnd:estroyWindow() of wincore.cpp
what do i need to set the m_hWnd to so that i dont get the assertion error? and does this get set before the dialog DoModal is called?
i dont get this error any other time, just when the DoModal is being called inside the dll. ive tested the dialog from an exe and it works fine.
any suggestions?
thanks,
txjump