Logo

sapi_util.cpp File Reference


Detailed Description

Implementation for various utility functions.

Definition in file sapi_util.cpp.

#include "stdafx.h"
#include <comdef.h>
#include "sapi_util.h"

Go to the source code of this file.

Functions

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
HRESULT GetTextFile (const TCHAR *pszFileName, WCHAR **ppwszCoMem, ULONG *pcch)
 retrieve the unicode bytes of the specified text file


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