Hi All,
A little background about the problem - My MFC Dialog based app uses a ListBox as a reservoir of data. I write my incoming transactions to this ListBox and if the user so wishes, I retrieve data from the selected entries (for variety of purposes - saving to file, copy to Clipboard etc). But till now it is all character data, all handled through CStrings.
Now my problem; I have to handle Binary Data, which would have been OK except for NULLs. As soon as a CString sees a NULL, it truncates the data at that point. Also the fact that to retrieve data from ListBox I use GetText function does not help.
Can anyone suggest an alternative/solution to my problem of handling NULLs.
TIA
Azad
A little background about the problem - My MFC Dialog based app uses a ListBox as a reservoir of data. I write my incoming transactions to this ListBox and if the user so wishes, I retrieve data from the selected entries (for variety of purposes - saving to file, copy to Clipboard etc). But till now it is all character data, all handled through CStrings.
Now my problem; I have to handle Binary Data, which would have been OK except for NULLs. As soon as a CString sees a NULL, it truncates the data at that point. Also the fact that to retrieve data from ListBox I use GetText function does not help.
Can anyone suggest an alternative/solution to my problem of handling NULLs.
TIA
Azad