Files
firestorm/build-env/VisualStudio6/VC98/Include/EDKUTCPP.H
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

45 lines
1.6 KiB
C++

// EdkUtCpp.h-------------------------------------------------------------------
// Declares a class that supplies a list of id's and strings which can
// be found by ID.
//
// Copyright 1986 - 1998 Microsoft Corporation. All Rights Reserved.
// -----------------------------------------------------------------------------
#ifndef _EDKUTCPP_H_
#define _EDKUTCPP_H_
// -----------------------------------------------------------------------------
// Use this structure to create your list.
// -----------------------------------------------------------------------------
typedef struct _IDList
{
ULONG ulID;
LPSTR pszValue;
} IDList, *PIDList;
// -----------------------------------------------------------------------------
class CIDList
{
public:
// CONSTRUCTOR: Use ARRAY_CNT( IDListArray) to pass nCnt.
CIDList(
PIDList pIDList, // Pointer to array of IDList.
UINT nCnt); // Number of items in the list.
// Find an ID in the pIDList and return it's string.
const LPSTR Find( // Returns the string found or a not found message string.
ULONG ulID); // ID to search for.
protected:
PIDList m_pIDList; // Contains a ptr to the ID List array.
UINT m_nCnt; // Number of items in the array.
char m_chNotFound[30]; // Will contain the last id not found message. The
// largest value will be "(ID: 0x012345678 not found)".
};
// -----------------------------------------------------------------------------
#endif //_EDKUTCPP_H_