Jump to content
  • Advertisement

Archived

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

chris1962

Too easy not to be working ???

This topic is 6089 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

I am using CString, in an attempt to concatenate some fields together. This is my code: char sCompanyCity[19]; char sCompanyProvStat[21]; char sCompanyPostZip[10]; CString sTemp4 (sCompanyCity, 19); CString sTemp5 (sCompanyProvStat, 21); CString sTemp6 (sCompanyPostZip, 10); CString sTemp7 = sTemp4 + ", " + sTemp5 + " " + sTemp6; // this line NOT working I''ve stepped it through debugger, and everything seems to be working fine, except for the last line. The fields sTemp4, 5 and 6 are all populated with city, provstat, and zip. But after the last line sTemp7 only contains the value from sTemp4 (City). Am I missing something painfully easy or what ?!? Thanks for any help, Chris In the mood for a little Fun & Games? Check out www.SunAndGames.com Home of Lost Enticer

Share this post


Link to post
Share on other sites
Advertisement

  • 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!