home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / addins / pipe / mrustrings.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  803b  |  29 lines

  1. // MRUStrings.h: interface for the CMRUStrings class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_MRUSTRINGS_H__BF23C403_9135_11D1_8302_00A0C91BC942__INCLUDED_)
  6. #define AFX_MRUSTRINGS_H__BF23C403_9135_11D1_8302_00A0C91BC942__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. class CMRUStrings  
  13. {
  14. public:
  15.     BOOL Create(HKEY hKeyParent, LPCTSTR lpszKeyName, CString& strName);
  16.     BOOL SetString(int i, CString& strVal);
  17.     BOOL GetString(int i, CString& strVal);
  18.     BOOL Create(CRegKey& key, CString& strName);
  19.     CMRUStrings();
  20.     virtual ~CMRUStrings();
  21.  
  22. protected:
  23.     CString m_strName;
  24.     int m_cElementsMax;
  25.     CRegKey m_regKey;
  26. };
  27.  
  28. #endif // !defined(AFX_MRUSTRINGS_H__BF23C403_9135_11D1_8302_00A0C91BC942__INCLUDED_)
  29.