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
debug.h
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:
Windows Kernel
Development Platform:
Visual C++
- #ifndef __debug_h__
- #define __debug_h__
- // For compatibility with WINNT build environment:
- #if DBG
- #define DEBUG 1
- #endif
- #ifdef DEBUG
- #define DBOUT(str) OutputDebugString(str)
- #define DebugTrap DebugBreak();
- #ifdef LOTS_O_DEBUG
- #include "nocrt.h"
- #include <objbase.h>
- #include <objerror.h>
- //#include <stdio.h> // Prevent sprintf warnings in client code....
- // Simple debug statements
- #define DebugSzdw(sz,dw)
- {
- TCHAR szT[100];
- wsprintf (szT, sz, dw);
- MessageBox (GetFocus(), szT, NULL, MB_OK);
- }
- #define DebugSz(sz) MessageBox (GetFocus(), sz, NULL, MB_OK)
- #ifdef __cplusplus
- extern "C" {
- #endif
- void _DebugHr (HRESULT hr, LPTSTR lpszFile, DWORD dwLine);
- void _DebugGUID (GUID g);
- #ifdef __cplusplus
- }; // extern C
- #endif
- #define DebugHr(hr) _DebugHr (hr, __FILE__, __LINE__)
- #define DebugGUID(guid) _DebugGUID (guid)
- #else //LOTS_O_DEBUG
- #define DebugSzdw(sz,dw)
- #define DebugSz(sz)
- #define DebugHr(hr)
- #define DebugGUID(guid)
- #endif // LOTS_O_DEBUG
- #ifdef __cplusplus
- extern TEXT("C") {
- #endif
- void _Assert (DWORD dw, LPSTR lpszExp, LPSTR lpszFile, DWORD dwLine);
- void _AssertSz (DWORD dw, LPSTR lpszExp, LPTSTR lpsz, LPSTR lpszFile, DWORD dwLine);
- #ifdef __cplusplus
- }; // extern C
- #endif
- #define Assert(dw) if (!(dw)) _Assert((dw), (#dw), __FILE__, __LINE__)
- #define AssertSz(dw,sz) if (!(dw)) _AssertSz ((dw), (#dw), (sz), __FILE__, __LINE__)
- #else // DEBUG
- #define Assert(dw)
- #define AssertSz(dw,sz)
- #define DebugSzdw(sz,dw)
- #define DebugSz(sz)
- #define DebugHr(hr)
- #define DebugGUID(guid)
- #define DBOUT(str)
- #endif // DEBUG
- #endif // __debug_h__