void __cdecl _my_invalid_parameter_handler(const wchar_t * expression, const wchar_t * function, const wchar_t * file, unsigned int line, uintptr_t)
{
wchar_t tips[256]={0};
wprintf_s(tips, L"Expression: %s funciont", expression);
::OutputDebugStringW(tips);
throw "Exception: mrlcientdll::_my_invalid_parameter_handler";
}
void __cdecl _my_purecall_handler(void)
{
::OutputDebugStringA("Exception: mrlcientdll::_my_purecall_handler");
throw "Exception: mrlcientdll::_my_purecall_handler";
}
void main()
{
_set_invalid_parameter_handler(_my_invalid_parameter_handler);
_set_purecall_handler(_my_purecall_handler)
}