Reputation: 12552
What's the best way (best practice) to append one LPWSTR/LPTSTR to another, without having to convert to something else?
Upvotes: 1
Views: 2980
Reputation: 6030
LPSTR == char* so You could just use strncat
with LPWSTR instead of strncat use just wcsncat
http://msdn.microsoft.com/en-us/library/tbyd7s1y.aspx
Upvotes: 1
Reputation: 355009
You will probably want to use strcat_s
and friends, which are length-checked versions of strcat
and friends.
Upvotes: 5