Exemplo n.º 1
0
void __stdcall DebugReport::AssertProcWrapper(const char * pszExp, const char * pszFile, int nLine,
		HMODULE)
{
	if (KernelGlobals::s_qReportSink)
	{
		StrAnsi sta = pszExp;
		SmartBstr exp;
		sta.GetBstr(&exp);
		SmartBstr file;
		sta = pszFile;
		sta.GetBstr(&file);
		KernelGlobals::s_qReportSink->AssertProc(exp, file, nLine);
	}
}
Exemplo n.º 2
0
/*----------------------------------------------------------------------------------------------
	Callback for DebugProcs
----------------------------------------------------------------------------------------------*/
void __stdcall DebugReport::ReportHandler(int reportType, char * szMsg)
{
	if (KernelGlobals::s_qReportSink)
	{
		StrAnsi sta = szMsg;
		SmartBstr bstr;
		sta.GetBstr(&bstr);
		KernelGlobals::s_qReportSink->Report((CrtReportType)reportType, bstr);
	}
}