util.h

来自「2D即时战略游戏VC源码」· C头文件 代码 · 共 26 行

H
26
字号
/*==========================================================================
 *
 *  Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved.
 *
 *  File:   util.h
 *  Content:    miscellaneous utilities include file
 *
 *
 ***************************************************************************/

#include <windows.h>

#define GUIDSTR_MAX 38
#define GUID_STRING_SIZE 64

int     StringFromGUID(GUID *lpguid, LPWSTR lpsz);
BOOL    IsEqualGuid(GUID *lpguid1, LPGUID lpguid2);
int     GetDigit(LPSTR lpstr);
void    ConvertField(LPBYTE lpByte,LPSTR * ppStr,int iFieldSize,BOOL fRightToLeft);
HRESULT GUIDFromString(LPWSTR lpWStr, GUID * pGuid);
int     WideToAnsi(LPSTR lpStr,LPWSTR lpWStr,int cchStr);
int     AnsiToWide(LPWSTR lpWStr,LPSTR lpStr,int cchWStr);
int     randInt( int low, int high );
double  randDouble( double low, double high );

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?