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

dxutil.cpp File Reference

#include <windows.h>
#include <mmsystem.h>
#include <tchar.h>
#include <stdio.h>
#include <dxerr9.h>
#include <stdarg.h>
#include "DXUtil.h"

Go to the source code of this file.

Defines

#define STRICT

Functions

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


Define Documentation

#define STRICT
 

Definition at line 9 of file dxutil.cpp.


Function Documentation

HRESULT _DbgOut TCHAR *  strFile,
DWORD  dwLine,
HRESULT  hr,
TCHAR *  strMsg
 

Definition at line 577 of file dxutil.cpp.

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

VOID DXUtil_ConvertAnsiStringToGeneric TCHAR *  tstrDestination,
const CHAR *  strSource,
int  cchDestChar
 

Definition at line 529 of file dxutil.cpp.

References DXUtil_ConvertAnsiStringToWide().

VOID DXUtil_ConvertAnsiStringToWide WCHAR *  wstrDestination,
const CHAR *  strSource,
int  cchDestChar
 

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
 

Definition at line 479 of file dxutil.cpp.

References DXUtil_ConvertWideStringToAnsi().

VOID DXUtil_ConvertGenericStringToWide WCHAR *  wstrDestination,
const TCHAR *  tstrSource,
int  cchDestChar
 

Definition at line 504 of file dxutil.cpp.

References DXUtil_ConvertAnsiStringToWide().

VOID DXUtil_ConvertWideStringToAnsi CHAR *  strDestination,
const WCHAR *  wstrSource,
int  cchDestChar
 

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
 

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(), cBomb::Reset(), cGame_Manager::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