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

  1. #ifndef RESOURCESTRING_H
  2. #define RESOURCESTRING_H
  3. #include "stdafx.h"
  4. #include <map>
  5. using namespace std;
  6. // singleton class.
  7. // used for reading resource strings.
  8. //
  9. class ResourceString
  10. {
  11. public:
  12. static
  13. ResourceString*
  14. Instance();
  15. static
  16. const _bstr_t&
  17. GetIDString( UINT id );
  18. protected:
  19. #if OBSOLETE
  20. ResourceString();
  21. #endif // OBSOLETE
  22. private:
  23. static map< UINT, _bstr_t> resourceStrings;
  24. static ResourceString* _instance;
  25. };
  26. // helper functions
  27. const _bstr_t&
  28. GETRESOURCEIDSTRING( UINT id );
  29. #endif