windows-nt/Source/XPSP1/NT/net/wlbs/nlbmgr/exe/resourcestring.h

45 lines
559 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef RESOURCESTRING_H
#define RESOURCESTRING_H
#include "stdafx.h"
#include <map>
using namespace std;
// singleton class.
// used for reading resource strings.
//
class ResourceString
{
public:
static
ResourceString*
Instance();
static
const _bstr_t&
GetIDString( UINT id );
protected:
#if OBSOLETE
ResourceString();
#endif // OBSOLETE
private:
static map< UINT, _bstr_t> resourceStrings;
static ResourceString* _instance;
};
// helper functions
const _bstr_t&
GETRESOURCEIDSTRING( UINT id );
#endif