Also make sure the edit box is created with ES_MULTILINE style.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Quote:
> Maybe the problems in how im outputting it.
> Im sending it to an edit box like this
> SendDlgItemMessage(hDlg, IDC_EDIT_PREPEPTALK,
> WM_SETTEXT , 0, (LPARAM)test);
> does the edit box ignore the \n character?
> >-----Original Message-----
> >On Wed, 11 Sep 2002 07:13:01 -0700, "mike"
> >>Im initializing a character pointer like this
> >>char* test = "some text"
> >>Is there any way to insert a newline character.
> >>EX:
> >>char* test = "Some \n text"
> >Yes, that's how you do it. But make it const char *
> instead of char *,
> >because you have no guarantee that string literals are
> in writeable
> >memory, and the compiler may not duplicate strings in
> memory if you use
> >the same string more than once.
> >--
> >Be seeing you.
> >.