|
-
August 6th, 2010, 12:22 PM
#1
Concat LPCTSTR
Hi
I have a string LPCTSTR. Now I want to append that to a string or concat it.
For e.g.
LPCTSTR str_name;
// str_name gets a string value from a function....
//.. say right now str_name ="ABC123"
Now I want a new string which would be like "Employee_ABC123"
So, all I want to do is either append 'ABC123' to 'Employee_'
or concat 'Employee_' and 'ABC123'
I tried LPCTSTR name = lstrcat(_T("Employee_"),str_name);
and also lstrcatw, but I am not getting data in 'name' !
I want the result in LPCTSTR .. if possible...
Actually the result is supposed to be any of the COLeVariant data types..!
Any Suggestions??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|