Logo

Utility Functions


Detailed Description

a grab bag of utilities designed to keep the code clean

These consist of functions to load files, convert partial paths to full paths, and various unicode and ansi conversion routines


Functions

HRESULT GetTextFile (const TCHAR *pszFileName, WCHAR **ppwszCoMem, ULONG *pcch)
 retrieve the unicode bytes of the specified text file
std::wstring TCHAR_2_wstring (const TCHAR *str)
 converts a TCHAR (unicode or ansi) into a wide character string
std::string wstring_2_string (const std::wstring &str)
 converts a unicode string into an MBCS string


Copyright (C) 2002-2005 Annosoft LLC. All Rights Reserved.
Visit us at www.annosoft.com