16,472
社区成员
发帖
与我相关
我的任务
分享
void WINAPIV My_invalid_parameter_handler(const wchar_t *pszExpression,
const wchar_t *pszFunction,
const wchar_t *pszFile,
unsigned int nLine,
uintptr_t pReserved)
{
::MessageBoxW(NULL, pszExpression, pszFunction, MB_OK|MB_ICONHAND);
return;
}
void CRenderBoxDlg::OnBnClickedButton45()
{
_set_invalid_parameter_handler(My_invalid_parameter_handler);
TCHAR szBuffer[5];
_tcscpy_s(szBuffer, 5, _T("123456789"));
}