|
#include "Diagnostics.h"
PFN_TRACE Trace::_pfnTrace = NULL;
void Trace::Init()
{
HANDLE hListener = NULL;
hListener = ::LoadLibraryA("EsiListenerCPP.DLL");
if (hListener != NULL)
{
_pfnTrace = (PFN_TRACE)::GetProcAddress( (HINSTANCE)hListener, "Trace");
}
}
void Trace::WriteLine(char* message)
{
if (_pfnTrace)
((PFN_TRACE)_pfnTrace)( message );
}
void Trace::WriteLine(std::string message)
{
if (_pfnTrace)
((PFN_TRACE)_pfnTrace)( (char*)message.data() );
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.