errorprint.cpp

来自「包括语音识别和数字TTS 设置语音识别内容的列表」· C++ 代码 · 共 24 行

CPP
24
字号

#include "stdafx.h"
#include "errorprint.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


void ErrorMsg(LPCTSTR lpszFormat, ...)
{
	ASSERT(AfxIsValidString(lpszFormat));

	va_list argList;
	va_start(argList, lpszFormat);

	CString str;
	str.FormatV(lpszFormat, argList);
	::AfxMessageBox(str, MB_OK | MB_ICONEXCLAMATION);

	va_end(argList);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?