Hi I have the following code in an existing project:
CString cString = "blah blah";
char *pBuffer = new char[bufLen];
int bufLen = cString.GetLength()+1;
memset(pBuffer, 0, bufLen);
strcpy_s(pBuffer, bufLen, cString);
This is all ok, but I have to replace the CString with std::string.
Now with the exact same code above (only using std::string cSting), the function strcpy_s gives me the error:
"No instance of overloaded function strcpy_s matches the argument list" and also: