Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to copy the character binary data into CString with NULL characters?

char pbuf[1000];
   CFile ffp;
   if(!ffp.Open(lpfilename,CFile::modeRead | CFile::typeBinary))
   {
       return;
   }
   else
   {
       ffp.Read(pbuf,sizeof(pbuf));
   }
           CString strbytes;
           strbytes=pbuf;
Posted

1 solution

This is a duplicate question!

Please read and follow the advice you've already been given in Your previous question!

If you don't understand the advice, say so, and point out what your problem is. In your old thread, not in a new one.

P.S.: I've downvoted your question because there is no excuse for duplicating your own queries.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900