Changeset 6770c87d5ef0…
Parent 151c3815242d…
by
Changes to 2 files · Browse files at 6770c87d5ef0 Showing diff from parent 151c3815242d Diff from another changeset...
@@ -8,24 +8,6 @@ #include "FCNTL.H"
-int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars)
-{
- *pWide = 0;
-
- #ifdef UNICODE
- lstrcpyn(pWide, pLocal, dwChars);
- #else
- MultiByteToWideChar( CP_ACP,
- 0,
- pLocal,
- -1,
- pWide,
- dwChars);
- #endif
-
- return lstrlenW(pWide);
-}
-
LPWSTR hf_mbtowc(LPWSTR lpw, LPCSTR lpa, int nChars)
{
assert(lpa != NULL);
|
@@ -5,8 +5,6 @@ #include <windows.h>
#include <string>
-int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars);
-
#define _MBSTR(wstr) hf_wctomb((LPSTR)alloca(wcslen(wstr) + 1), (wstr),wcslen(wstr) + 1)
#define _WCSTR(str) hf_mbtowc((LPWSTR)alloca((strlen(str) + 1) * sizeof(WCHAR)),(str),strlen(str) + 1)
|
Loading...