Today, I fix one ccr of wording change. One solution I chose is to use macro to replace the string.
Like this one,
#define REPLCE_STRING _T("coding")
CString str;
str.Format(""REPLCE_STRING" and perfect");
The replace above will make reader confused when they want to change something related. But I found this is effective when changing string.
The standard coding convention should be used like below.
str.Format("%s", REPLCE_STRING);
时间: 2024-12-26 08:10:26