Jump to content
  • Advertisement

Archived

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

mrhodes

Simple String question

This topic is 6073 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 this post


Link to post
Share on other sites
Advertisement
strcat()

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




I wanna work for Microsoft!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!