Hi all,I have made an edit box(say Device ID is to be entered) and I am trying to retrieve its value in an integer variable id. But the last argument in GetDlgItemText function poses a problem which asks for the number of characters of the string to be read into the variable. What should I specify here.. i am getting weird ID's due to this..
var[i].id is the variable in which value is to be retrieved.. What should I specify as last argument?
Any suggestions will be appreciated!
The last item is the size of the buffer (in characters) that receives the string from the edit control.
If you are trying to retrieve an integer value from an edit control you would not use GetDlgItemText....
If you don't have a copy of the windows SDK you can download it here...
var[i].id = GetDlgItemInt(hDialog,idCtrl,NULL,bSigned);
Download Details - Microsoft Download Center - Microsoft Windows 7 SDK (ISO)
Ok... thnx I will try your suggested function.. and post any further problems i face,, :D
It worked perfectly.. Thanks a lot :)