Carriage Return/Line Feed Problem

From: Robert A. (invalid_at_invalid.org)
Date: 04/07/04


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)



Relevant Pages

  • Re: Carriage Return/Line Feed Problem
    ... On Windows \r\n sequence designates end of the line ... Make sure to set correct styles in the multiline CEdit. ... > buffer, then I display the buffer in a big multiline CEdit box. ...
    (microsoft.public.vc.mfc)
  • Re: VB MSCOMM RS232 communication and manipulation of data
    ... You may ignore my previous post as i have got the display of HEX data ... it may be the size of the buffer which i loop through is too ... Dim Temp1 As String ... I used the second method as above for displaying the hex data. ...
    (microsoft.public.vb.winapi)
  • Re: Parallax vision?
    ... One adapter is the dominant (obey your master, ... pre-written pages to display. ... the display buffer of the main adapter, it is the one which you assign ... The worker coprocessors know which range of the ...
    (comp.sys.ibm.ps2.hardware)
  • Re: Video memory and Splashscreen
    ... Does your display driver start? ... display buffer in a different place than the buffer that the display driver ... Bruce.Eitman AT EuroTech DOT com ... The Kernel Debugger is waiting to connect with target. ...
    (microsoft.public.windowsce.embedded)
  • Re: Directdraw back buffer issues
    ... gives me a pointer to one back buffer, what about the rest of them, ... Now I want to display this surface, but unfortunately I cannot set the ... primary surface to display it? ... pixel format of the primary surface to UYVY. ...
    (microsoft.public.win32.programmer.directx.graphics)

Loading