Search code examples
cwindowsstringwinapistrsafe

String safe functions vs security enhanced CRT


Are the StringCch* functions considered safer then the safe versions of the CRT string functions.

Is StringCchCatW safer then wcscat_s? Or StringCchCopyW vs wcscpy_s?


Solution

  • This is tagged C++, so you should not use either of them, but std::wstring instead.