Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

base.h File Reference

#include <windows.h>
#include <vector>
#include <map>
#include <string>

Namespaces

namespace  W32DLib

Defines

#define W32DLIB_BASE_H   "$Id: base.h,v 1.7 2005/04/17 00:34:01 ianc Exp $"
#define W32DEBUGOUT(x)   while(false)
 Debug macro for non-debug builds (does nothing).

Functions

const char * MsgName (UINT msg)
 A table of Windows message names.
void W32Debug (const char *func, const char *file, const char *msg)
 Logs debug output.
std::string EncodeCString (const char *p)
 Encodes string so they appear C-like.

Variables

class class class typedef
BOOL(Window::* 
W32DLibCallback )(UINT msg, WPARAM wp, LPARAM lp)
 The callback type for W32DLib.

Define Documentation

#define W32DEBUGOUT  )     while(false)
 

Debug macro for non-debug builds (does nothing).

#define W32DLIB_BASE_H   "$Id: base.h,v 1.7 2005/04/17 00:34:01 ianc Exp $"
 


Function Documentation

std::string EncodeCString const char *  p  ) 
 

Encodes string so they appear C-like.

Used in debug build to dump strings.

Parameters:
p The string to encode.
Returns:
The encoded string.

const char* MsgName UINT  msg  ) 
 

A table of Windows message names.

Only available in debug builds -- returns an empty string otherwise.

Parameters:
msg A Windows Message ID
Returns:
The message type as a readable string

void W32Debug const char *  func,
const char *  file,
const char *  msg
 

Logs debug output.

Only available in debug builds -- does nothing otherwise.

Parameters:
func The function it was called from.
file The file it was called from.
msg The debug message.


Variable Documentation

class class class class typedef BOOL(Window::* W32DLib::W32DLibCallback)(UINT msg, WPARAM wp, LPARAM lp)
 

The callback type for W32DLib.

Simply accepts the usual Windows message parameters, and generally return TRUE if the event was handled (check individual message rules in MSDN).


Generated on Fri May 6 01:22:33 2005 for W32DLib by  doxygen 1.4.1