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.
52 lines
683 B
52 lines
683 B
/*++
|
|
|
|
Copyright (C) 1996-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
BSTRING.H
|
|
|
|
Abstract:
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
#ifndef _BSTRING_H_
|
|
#define _BSTRING_H_
|
|
|
|
class CBString
|
|
{
|
|
private:
|
|
BSTR m_pString;
|
|
|
|
|
|
public:
|
|
CBString()
|
|
{
|
|
m_pString = NULL;
|
|
}
|
|
|
|
CBString(int nSize);
|
|
|
|
CBString(WCHAR* pwszString);
|
|
|
|
~CBString();
|
|
|
|
BSTR GetString()
|
|
{
|
|
return m_pString;
|
|
}
|
|
|
|
const CBString& operator=(LPWSTR pwszString)
|
|
{
|
|
if(m_pString) {
|
|
SysFreeString(m_pString);
|
|
}
|
|
m_pString = SysAllocString(pwszString);
|
|
|
|
return *this;
|
|
}
|
|
};
|
|
|
|
#endif // _BSTRING_H_
|