#### Archived

This topic is now archived and is closed to further replies.

# Simple String question

## Recommended Posts

mrhodes    380
Hello everyone... This may sound like a silly question, however I can''t seem to figure it out. I''m trying to learn sockets programming, and I have a simple UI using the Windows API. I have an Edit box where I want to write messages, however I want to append new messages to it each time. I have a char buffer that stores the messages but I''m not sure how to copy a new string to the end of my buffer. Anyone have any ideas? Thanks, Mike

##### Share on other sites
Oluseyi    2106
strcat()

You could also use STL strings (if you''re using C++) and simply append them:
str += str2;

I wanna work for Microsoft!