instant required

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abxyz
    New Member
    • Oct 2006
    • 2

    instant required

    urgent required :
    how to get input from edit box in vc++ using GetWindowText function
  • abxyz
    New Member
    • Oct 2006
    • 2

    #2
    how to use GetWindowText,S etWindowText functions to get input from edit box in vc++

    how to use GetWindowText,S etWindowText functions to get input from edit box in vc++.i have 2 submit this 2day

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      You call GetWindowText this the edit box window handle and a pointer to the buffer and the size of the buffer

      GetWindowText(h EditWnd, buffer, sizeof buffer);

      But it is more usual to use GetDlgItemText which is called with the controls parent and the ID of the control

      GetDlgItemText( hParentWnd, ID_CTRL_EDIT, buffer, sizeof buffer);

      Comment

      Working...