Your m_hWnd is not created and so you are getting an ASSERT