Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
559 B

#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