sirbeatsalot
Programmer
How do i view a buffer full of binary data, which may contain char(0), in an edit box????
The edit box seems to look for the first NULL char in the buffer i am tring to display. Then it just thinks that's the end of the string i want to display. VB 6.0 allows text boxes to show NULL chars. How to do it in VC++ 6.0.
example... if my buffer contains the char(0) i wont be able to view the rest of the buffer in an edit box
char *buf="chri\0s";
SetDlgItemText(IDC_TXTOUT, buf);
displays... 'chri'
The edit box seems to look for the first NULL char in the buffer i am tring to display. Then it just thinks that's the end of the string i want to display. VB 6.0 allows text boxes to show NULL chars. How to do it in VC++ 6.0.
example... if my buffer contains the char(0) i wont be able to view the rest of the buffer in an edit box
char *buf="chri\0s";
SetDlgItemText(IDC_TXTOUT, buf);
displays... 'chri'