المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : LPTSTR concatenation



C++ Programming
07-30-2009, 12:20 AM
Hi all,

I am converting two floats to LPTSTR and trying to concatenate them. I have tried _tcscat, StringCbCatW, lstrcat, and lstrcatW. With all of these methods, after concatenation, I am only getting the value in "message" but not the concatenated part of "message1". And the application that uses this file (dll) crashes after showing the first part.

Can someone please suggest something? Any help is appreciated.

Here is a part of the code:

float a = 45.670;
float b = 2323.78;
LPTSTR message = TEXT("");
LPTSTR message1 = TEXT("");

std::stringstream sstr;
sstr