I have to read a data from number of characters specified
here i have to read 1 character but assertion is thrown and when i see l_chBuf1 1 character with junk y code how to solve this.
TCHAR is used to support unicode characters but
Assertion is throwing.How shall i get 1 character data?
TCHAR * l_chBuf1 = new TCHAR[nCharCount];
l_nBytesRead = l_oStdioFile.Read(l_chBuf1,1);
during fread it is reading a character as well as junk characters.How to avoid this.If i use Whole word to read it is reading properly without junk characters.
if ((nRead = (UINT)fread(pszMultiByteString, sizeof(BYTE), nCount, m_pStream))
Edited 25-Dec-11 22:47pm
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)