Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing NULL chars in Edit Box??

Status
Not open for further replies.

sirbeatsalot

Programmer
Dec 7, 2001
11
US
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'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top