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

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgDebug.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgDebug.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "..\LgLib\Version.h"
#include "LgDebug.h"
CLgDebug::CLgDebug()
{
}
CLgDebug::~CLgDebug()
{
}
INT CLgDebug::Trace( LPCTSTR pFormat, ... )
{
if( !pFormat )
return FALSE;
TCHAR pText[MAX_PRINT_LENGTH];
va_list pMarker;
va_start( pMarker, pFormat );
INT nPrinted = _vsntprintf( pText, MAX_PRINT_LENGTH, pFormat, pMarker );
if( nPrinted < 0 )
pText[MAX_PRINT_LENGTH-1] = 0
va_end( pMarker );
::OutputDebugString( pText );
return nPrinted;
}