How do I concatenate (or even assign) two strings (TCHAR arrays, I guess) in MinGW with GCC?
StrCatBuff?
#include <shlwapi.h>and-lshlwapido work, but you’re not supposed to use it_tcscat?
Seems not to existStringCchCat
Seems not to exist.strsafe.hdoesn’t exist.
The same holds true for their respective assignment functions like StringCchCpy and _tcscpy.
_tcscat(or the “secure” version,_tcscat_s) works just fine for concatenating arrays ofTCHARs. You have to includetchar.hin order to use either of these functions.The same should be true for
StringCchCat, which as you mention is defined instrsafe.h.If you’re missing these header files, make sure that you’ve installed the Windows SDK. It’s probably not included by default with MinGW like it is with Microsoft’s tooling.