Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
rxdebug.cpp
Package: toolbar.rar [view]
Upload User: rundaa
Upload Date: 2009-05-24
Package Size: 44k
Code Size: 1k
Category:
CAD
Development Platform:
Visual C++
- #include "stdafx.h"
- #ifdef _DEBUG
- #include "rxdebug.h"
- #ifndef _WINBASE_
- //extracted from winbase.h so that
- //we don't have to pull in the whole
- //header
- extern "C"
- void
- _stdcall
- OutputDebugStringA(
- const char* lpOutputString
- );
- extern "C"
- void
- _stdcall
- OutputDebugStringW(
- const unsigned short* lpOutputString
- );
- #ifdef UNICODE
- #define OutputDebugString OutputDebugStringW
- #else
- #define OutputDebugString OutputDebugStringA
- #endif // !UNICODE
- #endif //_WINBASE
- // determine number of elements in an array (not bytes)
- #define _countof(array) (sizeof(array)/sizeof(array[0]))
- inline void _cdecl RxTrace(const TCHAR* lpszFormat, ...)
- {
- va_list args;
- va_start(args, lpszFormat);
- int nBuf;
- TCHAR szBuffer[512];
- nBuf = _vsntprintf(szBuffer, _countof(szBuffer), lpszFormat, args);
- // was there an error?
- RXASSERT(nBuf >= 0);
- ::OutputDebugString(szBuffer);
- va_end(args);
- }
- #endif //_DEBUG, entire file