Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
MessageBox (NULL, "Hello World! This is my first WIN32 program", "Lesson 1", MB_OK);


How to add new line after "program"?
Posted
Updated 26-May-10 22:40pm
v2

1 solution

Try:
C++
MessageBox (NULL, "Hello World! This is my first WIN32 program \n", "Lesson 1", MB_OK);


In case just the '\n' doesnt work then try '\r\n'
C++
MessageBox (NULL, "Hello World! This is my first WIN32 program \r\n", "Lesson 1", MB_OK);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900