I'm getting little blocks when I write \n or \r to a text file, I've fixed this before, but can't remember how! Anyhelp? BTW, I'm copying the string "hello \n\r" from a
CString
to a
char cBuf[100]
using strcpy
Cheers
Steve
Printable View
I'm getting little blocks when I write \n or \r to a text file, I've fixed this before, but can't remember how! Anyhelp? BTW, I'm copying the string "hello \n\r" from a
CString
to a
char cBuf[100]
using strcpy
Cheers
Steve
Hello,
use memcpy() instead of strcpy()
cheers,
Tufail Khan
would using .AnsiToOem() help?
friend ! could not get ur question? whats problem using .AnsiToOem().
Its purpose is to convert all the characters in this CString object from the ANSI character set to the OEM character set.
what else do u want to know?
Tufail Khan
Your problem might be you are doing new line then line feed, when you should be doing line feed then new line return. Swap the /n/r to /r/n.
Notepas and text processors expect the pair of characters in a certain order, if they don't get them in that order you get the little black squares.
HTH
Roger Allen aka [CB]RIGamortis, the quake2 player.