12#if defined(__BORLANDC__)
40 template <
class Result,
class Source,
class Converter>
49 int n = (*converter)(flags, &
source[0], -1,
nullptr, 0);
51 WARN(
n == 0,
_T(
"String conversion sizing failed, GetLastError() == ") << GetLastError());
58 int r = (*converter)(flags, &
source[0], -1, &result[0],
n);
60 WARN(
r == 0,
_T(
"String conversion failed, GetLastError() == ") << GetLastError());
61 result.erase(
r > 0 ?
r - 1 : 0);
95 template <
class Result>
96 struct ConverterFromNarrowString
129: std::exception(), str(
src.str)
Diagnostic macros for assertions and tracing.
#define WARN(condition, message)
Derived from xmsg, TXBase is the base class for ObjectWindows and ObjectComponents exception-handling...
TXBase(const tstring &msg)
Calls the xmsg class's constructor that takes a string parameter and initializes xmsg with the value ...
const char * what() const noexcept
virtual TXBase * Clone()
Makes a copy of the exception object.
static void Raise(const tstring &msg)
Constructs a TXBase exception from scratch, and throws it.
virtual void Throw()
Throws the exception object.
TXBase &_RTLENTRY operator=(const TXBase &src)
Base exception support for framework exceptions.
Object Windows Library (OWLNext Core)