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.

48 lines
988 B

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: LgDebug.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of LgDebug.cpp
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "..\LgLib\Version.h"
  16. #include "LgDebug.h"
  17. CLgDebug::CLgDebug()
  18. {
  19. }
  20. CLgDebug::~CLgDebug()
  21. {
  22. }
  23. INT CLgDebug::Trace( LPCTSTR pFormat, ... )
  24. {
  25. if( !pFormat )
  26. return FALSE;
  27. TCHAR pText[MAX_PRINT_LENGTH];
  28. va_list pMarker;
  29. va_start( pMarker, pFormat );
  30. INT nPrinted = _vsntprintf( pText, MAX_PRINT_LENGTH, pFormat, pMarker );
  31. if( nPrinted < 0 )
  32. pText[MAX_PRINT_LENGTH-1] = 0
  33. va_end( pMarker );
  34. ::OutputDebugString( pText );
  35. return nPrinted;
  36. }