Computing.Net > Forums > Programming > PPC: New Line character won't work

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

PPC: New Line character won't work

Reply to Message Icon

Name: RWD1996
Date: March 27, 2006 at 16:22:46 Pacific
OS: Windows Mobile 5.0
CPU/Ram: Samsung 300Mhz / 32MB
Product: HP
Comment:

Hi, guys. I'm trying to write a prog. in C for PPC, and the new line character (\n) won't work in an edit control....

For example, if I do this:

SetDlgItemText(hwnd,edit1,TEXT("Test123\nTe
st123"));

It will show up in the edit control as:

"Test123[]Test123", where [] is a deformed character. Anyone have any idea why it won't work? I have to do it in unicode format because that's the only format PPC will use. Thanks if someone can help.

I believe in the Big Bang. God said it, and BANG it happened!



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: March 27, 2006 at 20:10:31 Pacific
Reply:

I'm not familiar with PPC, but have you tried using \r\n instead of just \n?

Good luck,
-SN


0

Response Number 2
Name: RWD1996
Date: March 28, 2006 at 14:48:48 Pacific
Reply:

Thanks, SN for the suggestion! It worked like a charm!

I believe in the Big Bang. God said it, and BANG it happened!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


batch file Visual Studio 2005 WYSIW...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: PPC: New Line character won't work

data type string won't work www.computing.net/answers/programming/data-type-string-wont-work/4126.html

ActiveSheet.Past won't work? www.computing.net/answers/programming/activesheetpast-wont-work/8059.html

C++ Program: Why won't it work? www.computing.net/answers/programming/c-program-why-wont-it-work/10752.html