News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

New lines and edit streams

Started by Sevag.K, August 11, 2007, 06:23:27 AM

Previous topic - Next topic

Sevag.K

I notice selections in a Rich Edit control use $0D as new line while streaming the data out outputs $0D0A.  Is there a way to force the Rich Edit control to stream out only $0D for new lines?

Tedd

I think you'll have to modify each chunk as you take it from stream-out before saving it to the file.
No snowflake in an avalanche feels responsible.

hutch--

Sevag,

With Rich Edit controls (2 and higher) they internally use only ascii 13 as the line end/new line. You can specify that the control saves in CRLF format if you need it. The alternative is to buffer in and out and modify the output so you get the line end / newline character that you want but it may be a bit slower than the EM_STREAMIN/OUT method.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Sevag.K

Thanks.

I decided to work directly on the stream as it comes in.  It's a tiny bit slower but the streams I'm dealing with here are usually very small.