#include <utility.h>
Public Member Functions | |
BStr () | |
BStr (const BSTR s) | |
BStr (LPCSTR s) | |
BStr (LPCWSTR s) | |
BStr (const VARIANT &var) | |
~BStr () | |
void | assign (BSTR s) |
void | assign (const VARIANT &var) |
operator BSTR () const | |
int | length () const |
Protected Attributes | |
BSTR | _p |
Definition at line 727 of file utility.h.
BStr::BStr | ( | const BSTR | s ) | [inline] |
BStr::BStr | ( | LPCSTR | s ) | [inline] |
Definition at line 739 of file utility.h.
References BUFFER_LEN.
{ WCHAR b[BUFFER_LEN]; if (s) _p = SysAllocStringLen(b, MultiByteToWideChar(CP_ACP, 0, s, -1, b, BUFFER_LEN)-1); else _p = NULL; }
BStr::BStr | ( | LPCWSTR | s ) | [inline] |
BStr::BStr | ( | const VARIANT & | var ) | [inline] |
void BStr::assign | ( | BSTR | s ) |
Definition at line 101 of file webchild.cpp.
References _p, and THROW_EXCEPTION.
Referenced by assign().
{ if (!SysReAllocString(&_p, s)) THROW_EXCEPTION(E_OUTOFMEMORY); }
void BStr::assign | ( | const VARIANT & | var ) |
int BStr::length | ( | ) | const [inline] |
Definition at line 773 of file utility.h.
Referenced by String::assign().
BStr::operator BSTR | ( | ) | const [inline] |
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |