Im using a LB_GETTEXTLEN to get the length on of the string but how do i make the buffer ?
VB Code:
[b]{ADDED} char *sBuf = ""; int iList; int iSel; int iSel2; iSel = ::SendMessage(list,LB_GETCURSEL,0,0); iSel2 = ::SendMessage(list,LB_GETTEXTLEN,iSel,0); ::SendMessage(list,LB_GETTEXT,iSel,sBuf); // iList = ::GetWindowTextLength(list); // ::GetWindowText(list,sBuf,iList); ::SetWindowText(edit,sBuf);[/b]
