![]() |
Public API Reference |
![]() |
Small helper to convert a wide to an ANSI string, useful when passing arguments to a function. More...
#include <csutil/win32/wintools.h>
Public Member Functions | |
cswinWtoA (const wchar_t *ws) | |
Construct from a wchar_t string. | |
operator const char * () const | |
Return the string passed in on construction as an ANSI string. | |
~cswinWtoA () | |
Destruct, free up memory. |
Small helper to convert a wide to an ANSI string, useful when passing arguments to a function.
wchar_t test[] = L"Foo"; SomeFunctionA (cswinWtoA (test));
Definition at line 93 of file wintools.h.
cswinWtoA::cswinWtoA | ( | const wchar_t * | ws | ) | [inline] |
Construct from a wchar_t string.
Definition at line 99 of file wintools.h.
cswinWtoA::~cswinWtoA | ( | ) | [inline] |
Destruct, free up memory.
Definition at line 102 of file wintools.h.
cswinWtoA::operator const char * | ( | ) | const [inline] |
Return the string passed in on construction as an ANSI string.
Definition at line 105 of file wintools.h.