It is possible to get an Unhandled
when using stl string objects returned from generated objects. The
typically noticed when using printf, wprintf, fprintf, fwprintf,
_snprintf, _snwprintf, _vscprintf, _vscwprintf family of
printf("DVD Title = %s\n", dvd->GetTitle());
where dvd->GetTitle() returns an stl string.
Because std::tstring is just the standard stl
string hiding behind a typedef, we get a problem that is quite common,
and not imediatley
obvious what the cause is.
The stl string class does not have a const char* cast operator, so it
be used as if it were a C++ string. Because of this when it is used
(or a similar function), the printf function attempts to treat it as a
char* (which it is not), and this causes problems that lead to a GPF
A reference to a const char * can be obtained from a stl string using
method. Use this method whenever you expect the stl string to be
a const char * (i.e. when used in printf etc.).
printf("DVD Title = %s\n", dvd->GetTitle().c_str());
All Builds of Liquid XML DataBinder, when using Microsoft Visual C++