Example #1
0
void CChatLog::adjust(const TCHAR* format, ...)
{
	CAtlString cs;
	va_list ap;

	va_start(ap, format);
	cs.FormatV(format, ap);
	va_end(ap);

	write(reinterpret_cast<const void*>(static_cast<const TCHAR*>(cs)), cs.GetLength());
}
Example #2
0
	virtual void debugout(TCHAR* format, ...)
	{
		CAtlString ds;
		va_list ap;

		va_start(ap, format);
		ds.FormatV(format, ap);
		va_end(ap);

		if (_out_type == DEBUGOUT_STRING)
			_output_string(ds);
		else if (_out_type == DEBUGOUT_FILE)
			_output_file(ds);
	}