You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DebugConsole.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of DebugConsole.h
|
|
//----------------------------------------------------------------------------
|
|
// DebugConsole.h: interface for the CDebugConsole class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_DEBUGCONSOLE_H__0C855800_723B_11D5_B631_ADA26226D90C__INCLUDED_)
|
|
#define AFX_DEBUGCONSOLE_H__0C855800_723B_11D5_B631_ADA26226D90C__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class CDebugConsole
|
|
{
|
|
public:
|
|
CDebugConsole( BOOL bCreate = FALSE );
|
|
virtual ~CDebugConsole();
|
|
|
|
public:
|
|
BOOL Create();
|
|
void Destroy();
|
|
|
|
public:
|
|
INT Printf( LPCTSTR pFormat, ... );
|
|
|
|
private:
|
|
HANDLE m_hOutputHandle;
|
|
};
|
|
|
|
#ifdef DEBUG_CONSOLE
|
|
#define DBG_PRINT DbgConsole.Printf
|
|
extern CDebugConsole DbgConsole;
|
|
#else
|
|
#define DBG_PRINT
|
|
#endif
|
|
|
|
INT DebugTrace( LPCTSTR pFormat, ... );
|
|
|
|
#endif // !defined(AFX_DEBUGCONSOLE_H__0C855800_723B_11D5_B631_ADA26226D90C__INCLUDED_)
|