Carriage Return/Line Feed Problem
From: Robert A. (invalid_at_invalid.org)
Date: 04/07/04
- Next message: vadiraj: "good book for MFC"
- Previous message: Gary Chang: "RE: call a webservice from mfc"
- Next in thread: Dmitri Zhukov: "Re: Carriage Return/Line Feed Problem"
- Reply: Dmitri Zhukov: "Re: Carriage Return/Line Feed Problem"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Apr 2004 23:51:41 -0400
Hi guys,
I wrote some code that gets the HTML from a Web page and stores it in a
buffer, then I display the buffer in a big multiline CEdit box. The problem
is that on many pages I don't get new lines, I just get a thick solid
verticle line kinda like this: || where it should return.
Also, if I view the pages (view source) in Notepad they look fine.
Most pages do that, but interestingly Microsoft pages do the proper new line
and look great in my edit box.
Maybe I have to replace all the \r with \r\n or something like that ? Does a
\r\n still only take up 1 char ? I download the page in a BYTE buffer, I
tried a cast to (char*)pBuffer with no success. Any ideas ? Thanks.
Here is a sample:
<html> (FAT LINE HERE) <head> (FAT LINE HERE) <meta NAME=...>
(I just copied and pasted directly from my CEdit and the returns worked here
so I added the FAT LINE text)
- Next message: vadiraj: "good book for MFC"
- Previous message: Gary Chang: "RE: call a webservice from mfc"
- Next in thread: Dmitri Zhukov: "Re: Carriage Return/Line Feed Problem"
- Reply: Dmitri Zhukov: "Re: Carriage Return/Line Feed Problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|