home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- //
- // CAnyString.h : Interface of the CAnyString class
- //
- /////////////////////////////////////////////////////////////////////////////
- //
- // (C) Copyright Black Diamond Consulting, Inc 1996. All rights reserved.
- //
- // You have a royalty-free right to use, modify, reproduce and
- // distribute the Sample Files (and/or any modified version) in
- // any way you find useful, provided that you agree that Black
- // Diamond Consulting has no warranty obligations or liability
- // for any Sample Application Files which are modified.
- //
- // Revision History:
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #define __CWSTRING_H__
-
- class CAnyString : public CObject
- {
- protected:
- WCHAR* m_pwchar;
- char* m_pchar;
-
- public:
- CAnyString();
- CAnyString( const WCHAR* pwchar );
- CAnyString( const char* pchar );
- ~CAnyString();
-
- const CAnyString& operator=( const WCHAR* pwchar );
- const CAnyString& operator=( const char* pchar );
-
- operator WCHAR*() const { return m_pwchar; }
- operator char*() const { return m_pchar; }
-
- protected:
- void Reset();
-
- };
-