home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 October
/
Chip_1997-10_cd.bin
/
tema
/
sybase
/
powerj
/
hpp.z
/
WOLEBSTR.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-10-21
|
2KB
|
85 lines
/*************************************************************************
*
* WBString -- OLE BString
*
*
* Events:
*
*
*************************************************************************/
#ifndef _WOLEBSTR_HPP_INCLUDED
#define _WOLEBSTR_HPP_INCLUDED
#ifndef _WNO_PRAGMA_PUSH
#pragma pack(push,8);
#pragma enum int;
#endif
#ifndef _WSTRING_HPP_INCLUDED
# include "wstring.hpp"
#endif
#ifndef _WBUFFER_HPP_INCLUDED
# include "wbuffer.hpp"
#endif
class WCMCLASS WBString {
public:
/**********************************************************
* Constructors and Destructors
*********************************************************/
WBString( void );
WBString( const WChar * const str );
WBString( long char * wbstr );
WBString( const WString & wstring );
WBString( const WBuffer & buffer );
WBString( const WBString & wbstr );
WBString( WULong size, WUnicodeChar *buffer );
virtual ~WBString();
/**************************************************************
* Properties
**************************************************************/
WUInt GetLength( void ) const;
WUInt GetByteLength( void ) const;
long char * GetHandle( void ) const;
/**************************************************************
* Methods
**************************************************************/
void Clear( void );
/**************************************************************
* Operators
**************************************************************/
WBString & operator=( const WBString & bstr );
// cast operators
operator WString() const;
operator WBuffer() const;
public:
/**********************************************************
* Data Members
*********************************************************/
long char * _bstring;
};
#ifndef _WNO_PRAGMA_PUSH
#pragma enum pop;
#pragma pack(pop);
#endif
#endif // _WOLEBSTR_HPP_INCLUDED