Changeset 151c3815242d…
Parent 7dbb91413c9c…
by
Changes to 2 files · Browse files at 151c3815242d Showing diff from parent 7dbb91413c9c Diff from another changeset...
@@ -8,26 +8,6 @@ #include "FCNTL.H"
-int WideCharToLocal(LPTSTR pLocal, LPWSTR pWide, DWORD dwChars)
-{
- *pLocal = 0;
-
- #ifdef UNICODE
- lstrcpyn(pLocal, pWide, dwChars);
- #else
- WideCharToMultiByte( CP_ACP,
- 0,
- pWide,
- -1,
- pLocal,
- dwChars,
- NULL,
- NULL);
- #endif
-
- return lstrlen(pLocal);
-}
-
int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars)
{
*pWide = 0;
|
@@ -6,7 +6,6 @@ #include <string>
int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars);
-int WideCharToLocal(LPTSTR pLocal, LPWSTR pWide, 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...