Old fashion design for PC-104
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

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: DebugConsole.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of DebugConsole.h
  13. //----------------------------------------------------------------------------
  14. // DebugConsole.h: interface for the CDebugConsole class.
  15. //
  16. //////////////////////////////////////////////////////////////////////
  17. #if !defined(AFX_DEBUGCONSOLE_H__0C855800_723B_11D5_B631_ADA26226D90C__INCLUDED_)
  18. #define AFX_DEBUGCONSOLE_H__0C855800_723B_11D5_B631_ADA26226D90C__INCLUDED_
  19. #if _MSC_VER > 1000
  20. #pragma once
  21. #endif // _MSC_VER > 1000
  22. class CDebugConsole
  23. {
  24. public:
  25. CDebugConsole( BOOL bCreate = FALSE );
  26. virtual ~CDebugConsole();
  27. public:
  28. BOOL Create();
  29. void Destroy();
  30. public:
  31. INT Printf( LPCTSTR pFormat, ... );
  32. private:
  33. HANDLE m_hOutputHandle;
  34. };
  35. #ifdef DEBUG_CONSOLE
  36. #define DBG_PRINT DbgConsole.Printf
  37. extern CDebugConsole DbgConsole;
  38. #else
  39. #define DBG_PRINT
  40. #endif
  41. INT DebugTrace( LPCTSTR pFormat, ... );
  42. #endif // !defined(AFX_DEBUGCONSOLE_H__0C855800_723B_11D5_B631_ADA26226D90C__INCLUDED_)