Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CIPAddressCtrl -- m_hWnd Assertion Failure

Status
Not open for further replies.

jdeejay

Programmer
Oct 5, 2001
44
US
When trying to capture an ip address entered in a dialog, an assertion failure is noted about the handle to the window (ASSERT:):IsWindow(m_hWnd)). GetAddress()does not directly specify you give it a handle to a window. Why would the ASSERT not be getting a correct m_hWnd? I get this both trying the DWORD form or with the BYTE form.

code:
retint = addServerDlg.m_dlgadip.GetAddress(ipaddr)

Thanks

 
Window with m_hWnd is not created before Your call, it is the problem. Window is allways valid by WM_SHOWWINDOW message - You should not try to work with window before this message.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top