2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * INCLUDES _________________________________________________________________
14 #include <WINNT\afsapplib.h>
15 #include <char_conv.h>
20 * Class to convert a TCHAR string to an ANSI string.
22 S2A::S2A(LPCTSTR pszUnicode
)
24 m_pszAnsi
= StringToAnsi(pszUnicode
);
29 // Only need to free the string if a conversion was performed
32 FreeString(m_pszAnsi
);
38 * Class to convert an ANSI string to a TCHAR string. If UNICODE is defined,
39 * then the TCHAR string will be a UNICODE string, otherwise it will be an
42 A2S::A2S(const char *pszAnsi
)
44 m_pszUnicode
= AnsiToString(pszAnsi
);
49 // Only need to free the string if a conversion was performed
52 FreeString(m_pszUnicode
);