View Single Post
Old Jan 16th, 2006, 4:15 AM   #2
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
UINT GetDlgItemText(

    HWND hDlg,	// handle of dialog box
    int nIDDlgItem,	// identifier of control
    LPTSTR lpString,	// address of buffer for text
    int nMaxCount 	// maximum size of string
   );

That should work fine.
And one more thing, you don't need to convert th ip from the text box to a char array, this function does it automatically for you. Later, you may want to convert the array to int, or ip address struct.
ivan is offline   Reply With Quote