I have a mfc dll source code in vc++.
my dll use a CString variable.
when i write that variable in a binary file
the buffer have some 0(null) character.
for example if my CString variable would "TEST"
the data writen to file is
'T' 0 'E' 0 'S' 0 'T' 0 0 0
but where I do simular work in my mfc project the data writen to file is
'T' 'E' 'S' 'T'