_bstr_t::Data_t::Data_t |
( |
const char * |
s | ) |
|
|
inline |
BSTR __stdcall ConvertStringToBSTR(const char *pSrc)
#define NULL
Definition: vcruntime.h:236
unsigned long m_RefCount
Definition: comutil.h:257
char * m_str
Definition: comutil.h:256
BSTR m_wstr
Definition: comutil.h:255
_bstr_t::Data_t::Data_t |
( |
const wchar_t * |
s | ) |
|
|
inline |
691 m_wstr = ::SysAllocString(s);
#define NULL
Definition: vcruntime.h:236
unsigned long m_RefCount
Definition: comutil.h:257
char * m_str
Definition: comutil.h:256
void __stdcall _com_issue_error(HRESULT)
BSTR m_wstr
Definition: comutil.h:255
_bstr_t::Data_t::Data_t |
( |
BSTR |
bstr, |
|
|
bool |
fCopy |
|
) |
| |
|
inline |
704 if (fCopy && bstr !=
NULL) {
705 m_wstr = ::SysAllocStringByteLen(reinterpret_cast<char*>(bstr),
706 ::SysStringByteLen(bstr));
#define NULL
Definition: vcruntime.h:236
unsigned long m_RefCount
Definition: comutil.h:257
char * m_str
Definition: comutil.h:256
void __stdcall _com_issue_error(HRESULT)
BSTR m_wstr
Definition: comutil.h:255
722 const unsigned int l1 = s1.
length();
723 const unsigned int l2 = s2.
length();
733 m_wstr = ::SysAllocStringByteLen(
NULL, (l1 + l2) *
sizeof(
wchar_t));
744 const wchar_t* wstr1 =
static_cast<const wchar_t*
>(s1);
751 const wchar_t* wstr2 =
static_cast<const wchar_t*
>(s2);
#define NULL
Definition: vcruntime.h:236
unsigned long m_RefCount
Definition: comutil.h:257
char * m_str
Definition: comutil.h:256
void __stdcall _com_issue_error(HRESULT)
#define FAILED(hr)
Definition: comutil.h:71
static HRESULT UIntAdd(UINT uAugend, UINT uAddend, UINT *puResult)
Definition: comutil.h:100
#define _COM_MEMCPY_S(dest, destsize, src, count)
Definition: comutil.h:48
static HRESULT UIntMult(UINT uMultiplicand, UINT uMultiplier, UINT *puResult)
Definition: comutil.h:110
BSTR m_wstr
Definition: comutil.h:255
unsigned int length() const
Definition: comutil.h:552
_bstr_t::Data_t::Data_t |
( |
| ) |
|
throw | ( | |
| ) | | |
|
private |
_bstr_t::Data_t::Data_t |
( |
const Data_t & |
s | ) |
|
throw | ( | |
| ) | | |
|
private |
_bstr_t::Data_t::~Data_t |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlineprivate |
void _Free()
Definition: comutil.h:928
void _bstr_t::Data_t::_Free |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlineprivate |
#define NULL
Definition: vcruntime.h:236
char * m_str
Definition: comutil.h:256
BSTR m_wstr
Definition: comutil.h:255
unsigned long _bstr_t::Data_t::AddRef |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
767 InterlockedIncrement(reinterpret_cast<long*>(&
m_RefCount));
unsigned long m_RefCount
Definition: comutil.h:257
void _bstr_t::Data_t::Assign |
( |
BSTR |
s | ) |
|
|
inline |
853 m_wstr = ::SysAllocStringByteLen(reinterpret_cast<char*>(s), ::SysStringByteLen(s));
void _Free()
Definition: comutil.h:928
#define NULL
Definition: vcruntime.h:236
char * m_str
Definition: comutil.h:256
BSTR m_wstr
Definition: comutil.h:255
void _bstr_t::Data_t::Attach |
( |
BSTR |
s | ) |
|
throw | ( | |
| ) | | |
|
inline |
void _Free()
Definition: comutil.h:928
unsigned long m_RefCount
Definition: comutil.h:257
char * m_str
Definition: comutil.h:256
BSTR m_wstr
Definition: comutil.h:255
int _bstr_t::Data_t::Compare |
( |
const Data_t & |
str | ) |
const |
throw | ( | |
| ) | | |
|
inline |
880 const unsigned int l1 = ::SysStringLen(
m_wstr);
881 const unsigned int l2 = ::SysStringLen(str.m_wstr);
883 unsigned int len = l1;
889 BSTR bstr2 = str.m_wstr;
892 if (*bstr1++ != *bstr2++) {
893 return bstr1[-1] - bstr2[-1];
897 return (l1 < l2) ? -1 : (l1 == l2) ? 0 : 1;
BSTR m_wstr
Definition: comutil.h:255
BSTR _bstr_t::Data_t::Copy |
( |
| ) |
const |
|
inline |
836 BSTR bstr = ::SysAllocStringByteLen(reinterpret_cast<char*>(
m_wstr), ::SysStringByteLen(
m_wstr));
#define NULL
Definition: vcruntime.h:236
void __stdcall _com_issue_error(HRESULT)
BSTR m_wstr
Definition: comutil.h:255
const char * _bstr_t::Data_t::GetString |
( |
| ) |
const |
|
inline |
#define NULL
Definition: vcruntime.h:236
char * m_str
Definition: comutil.h:256
BSTR m_wstr
Definition: comutil.h:255
char *__stdcall ConvertBSTRToString(BSTR pSrc)
const wchar_t * _bstr_t::Data_t::GetWString |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
BSTR m_wstr
Definition: comutil.h:255
wchar_t *& _bstr_t::Data_t::GetWString |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
BSTR m_wstr
Definition: comutil.h:255
unsigned int _bstr_t::Data_t::Length |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
BSTR m_wstr
Definition: comutil.h:255
_bstr_t::Data_t::operator const char * |
( |
| ) |
const |
|
inline |
const char * GetString() const
Definition: comutil.h:822
_bstr_t::Data_t::operator const wchar_t * |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
BSTR m_wstr
Definition: comutil.h:255
915 return ::operator
new(sz);
unsigned long _bstr_t::Data_t::RefCount |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
unsigned long m_RefCount
Definition: comutil.h:257
unsigned long _bstr_t::Data_t::Release |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
773 unsigned long cRef = InterlockedDecrement(reinterpret_cast<long*>(&
m_RefCount));
unsigned long m_RefCount
Definition: comutil.h:257
unsigned long _bstr_t::Data_t::m_RefCount |
|
private |
char* _bstr_t::Data_t::m_str |
|
mutableprivate |
BSTR _bstr_t::Data_t::m_wstr |
|
private |
The documentation for this class was generated from the following file: