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

dxutil.h File Reference

Go to the source code of this file.

Defines

#define SAFE_DELETE(p)   { if(p) { delete (p); (p)=NULL; } }
#define SAFE_DELETE_ARRAY(p)   { if(p) { delete[] (p); (p)=NULL; } }
#define SAFE_RELEASE(p)   { if(p) { (p)->Release(); (p)=NULL; } }
#define DXTRACE   sizeof
#define DEBUG_MSG(str)   (0L)

Enumerations

enum  TIMER_COMMAND {
  TIMER_RESET, TIMER_START, TIMER_STOP, TIMER_ADVANCE,
  TIMER_GETABSOLUTETIME, TIMER_GETAPPTIME, TIMER_GETELAPSEDTIME
}

Functions

const TCHAR * DXUtil_GetDXSDKMediaPath ()
HRESULT DXUtil_FindMediaFile (TCHAR *strPath, TCHAR *strFilename)
HRESULT DXUtil_WriteStringRegKey (HKEY hKey, TCHAR *strRegName, TCHAR *strValue)
HRESULT DXUtil_WriteIntRegKey (HKEY hKey, TCHAR *strRegName, DWORD dwValue)
HRESULT DXUtil_WriteGuidRegKey (HKEY hKey, TCHAR *strRegName, GUID guidValue)
HRESULT DXUtil_WriteBoolRegKey (HKEY hKey, TCHAR *strRegName, BOOL bValue)
HRESULT DXUtil_ReadStringRegKey (HKEY hKey, TCHAR *strRegName, TCHAR *strValue, DWORD dwLength, TCHAR *strDefault)
HRESULT DXUtil_ReadIntRegKey (HKEY hKey, TCHAR *strRegName, DWORD *pdwValue, DWORD dwDefault)
HRESULT DXUtil_ReadGuidRegKey (HKEY hKey, TCHAR *strRegName, GUID *pGuidValue, GUID &guidDefault)
HRESULT DXUtil_ReadBoolRegKey (HKEY hKey, TCHAR *strRegName, BOOL *pbValue, BOOL bDefault)
FLOAT __stdcall DXUtil_Timer (TIMER_COMMAND command)
VOID DXUtil_ConvertAnsiStringToWide (WCHAR *wstrDestination, const CHAR *strSource, int cchDestChar=-1)
VOID DXUtil_ConvertWideStringToAnsi (CHAR *strDestination, const WCHAR *wstrSource, int cchDestChar=-1)
VOID DXUtil_ConvertGenericStringToAnsi (CHAR *strDestination, const TCHAR *tstrSource, int cchDestChar=-1)
VOID DXUtil_ConvertGenericStringToWide (WCHAR *wstrDestination, const TCHAR *tstrSource, int cchDestChar=-1)
VOID DXUtil_ConvertAnsiStringToGeneric (TCHAR *tstrDestination, const CHAR *strSource, int cchDestChar=-1)
VOID DXUtil_ConvertWideStringToGeneric (TCHAR *tstrDestination, const WCHAR *wstrSource, int cchDestChar=-1)
VOID DXUtil_Trace (TCHAR *strMsg,...)
HRESULT _DbgOut (TCHAR *, DWORD, HRESULT, TCHAR *)


Define Documentation

#define DEBUG_MSG str   )     (0L)
 

Definition at line 97 of file dxutil.h.

#define DXTRACE   sizeof
 

Definition at line 91 of file dxutil.h.

#define SAFE_DELETE  )     { if(p) { delete (p); (p)=NULL; } }
 

Definition at line 15 of file dxutil.h.

Referenced by CleanUp(), cGame_Manager::Clear(), and cGame_Manager::~cGame_Manager().

#define SAFE_DELETE_ARRAY  )     { if(p) { delete[] (p); (p)=NULL; } }
 

Definition at line 16 of file dxutil.h.

#define SAFE_RELEASE  )     { if(p) { (p)->Release(); (p)=NULL; } }
 

Definition at line 17 of file dxutil.h.

Referenced by CSurface::Destroy(), CDisplay::DestroyObjects(), CDisplay::InitClipper(), InitDD(), and CSurface::~CSurface().


Enumeration Type Documentation

enum TIMER_COMMAND
 

Enumeration values:
TIMER_RESET 
TIMER_START 
TIMER_STOP 
TIMER_ADVANCE 
TIMER_GETABSOLUTETIME 
TIMER_GETAPPTIME 
TIMER_GETELAPSEDTIME 

Definition at line 62 of file dxutil.h.


Function Documentation

HRESULT _DbgOut TCHAR *  ,
DWORD  ,
HRESULT  ,
TCHAR * 
 

Definition at line 577 of file dxutil.cpp.

Referenced by cSprite_Display_Def::Display(), cBitmap_Display_Def::Display(), cGame_Manager::Display_Score(), cGame_Manager::Display_Time(), and Draw_Line().

VOID DXUtil_ConvertAnsiStringToGeneric TCHAR *  tstrDestination,
const CHAR *  strSource,
int  cchDestChar = -1
 

Definition at line 529 of file dxutil.cpp.

References DXUtil_ConvertAnsiStringToWide().

VOID DXUtil_ConvertAnsiStringToWide WCHAR *  wstrDestination,
const CHAR *  strSource,
int  cchDestChar = -1
 

Definition at line 431 of file dxutil.cpp.

Referenced by DXUtil_ConvertAnsiStringToGeneric(), and DXUtil_ConvertGenericStringToWide().

VOID DXUtil_ConvertGenericStringToAnsi CHAR *  strDestination,
const TCHAR *  tstrSource,
int  cchDestChar = -1
 

Definition at line 479 of file dxutil.cpp.

References DXUtil_ConvertWideStringToAnsi().

VOID DXUtil_ConvertGenericStringToWide WCHAR *  wstrDestination,
const TCHAR *  tstrSource,
int  cchDestChar = -1
 

Definition at line 504 of file dxutil.cpp.

References DXUtil_ConvertAnsiStringToWide().

VOID DXUtil_ConvertWideStringToAnsi CHAR *  strDestination,
const WCHAR *  wstrSource,
int  cchDestChar = -1
 

Definition at line 455 of file dxutil.cpp.

Referenced by DXUtil_ConvertGenericStringToAnsi(), and DXUtil_ConvertWideStringToGeneric().

VOID DXUtil_ConvertWideStringToGeneric TCHAR *  tstrDestination,
const WCHAR *  wstrSource,
int  cchDestChar = -1
 

Definition at line 554 of file dxutil.cpp.

References DXUtil_ConvertWideStringToAnsi().

HRESULT DXUtil_FindMediaFile TCHAR *  strPath,
TCHAR *  strFilename
 

Definition at line 60 of file dxutil.cpp.

References DXUtil_GetDXSDKMediaPath().

const TCHAR* DXUtil_GetDXSDKMediaPath  ) 
 

Definition at line 26 of file dxutil.cpp.

Referenced by DXUtil_FindMediaFile().

HRESULT DXUtil_ReadBoolRegKey HKEY  hKey,
TCHAR *  strRegName,
BOOL *  pbValue,
BOOL  bDefault
 

Definition at line 178 of file dxutil.cpp.

HRESULT DXUtil_ReadGuidRegKey HKEY  hKey,
TCHAR *  strRegName,
GUID *  pGuidValue,
GUID &  guidDefault
 

Definition at line 216 of file dxutil.cpp.

HRESULT DXUtil_ReadIntRegKey HKEY  hKey,
TCHAR *  strRegName,
DWORD *  pdwValue,
DWORD  dwDefault
 

Definition at line 140 of file dxutil.cpp.

HRESULT DXUtil_ReadStringRegKey HKEY  hKey,
TCHAR *  strRegName,
TCHAR *  strValue,
DWORD  dwLength,
TCHAR *  strDefault
 

Definition at line 101 of file dxutil.cpp.

FLOAT __stdcall DXUtil_Timer TIMER_COMMAND  command  ) 
 

Definition at line 262 of file dxutil.cpp.

References TIMER_ADVANCE, TIMER_GETABSOLUTETIME, TIMER_GETAPPTIME, TIMER_GETELAPSEDTIME, TIMER_RESET, TIMER_START, and TIMER_STOP.

Referenced by cBomb::cBomb(), cGame_Manager::cGame_Manager(), cUnit::cUnit(), cUnit::Follow_Path(), cGame_Manager::Generate_Cadeaux(), cUnit::Move(), cPlayer::React_To_Bomb(), cGame_Manager::Read_Keyboard_And_React(), cGame_Manager::Reset(), cBomb::Reset(), cGame_Manager::Start(), and cGame_Manager::Update_Game().

VOID DXUtil_Trace TCHAR *  strMsg,
  ...
 

Definition at line 604 of file dxutil.cpp.

HRESULT DXUtil_WriteBoolRegKey HKEY  hKey,
TCHAR *  strRegName,
BOOL  bValue
 

Definition at line 200 of file dxutil.cpp.

HRESULT DXUtil_WriteGuidRegKey HKEY  hKey,
TCHAR *  strRegName,
GUID  guidValue
 

Definition at line 238 of file dxutil.cpp.

HRESULT DXUtil_WriteIntRegKey HKEY  hKey,
TCHAR *  strRegName,
DWORD  dwValue
 

Definition at line 162 of file dxutil.cpp.

HRESULT DXUtil_WriteStringRegKey HKEY  hKey,
TCHAR *  strRegName,
TCHAR *  strValue
 

Definition at line 122 of file dxutil.cpp.


Generated on Fri May 21 19:22:37 2004 for LIBELL by doxygen 1.3.7