tags:

views:

184

answers:

2

What's the best way (best practice) to append one LPWSTR/LPTSTR to another, without having to convert to something else?

+3  A: 

You will probably want to use strcat_s and friends, which are length-checked versions of strcat and friends.

James McNellis
+1  A: 

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

matekm